Softany Txt2Htm2Chm Reference Previous Topic Next Topic

The format of text files

Softany Txt2Htm2Chm can recognize the following formats:

One file is one topic

One text file includes just one topic. The first non-blank line will be regarded as the title and the other lines below it is the content of the topic. You can set the file name as the title; in this case, the whole file is the content.

One or more topic per file

There may be more than one topic in a file. So the program needs some sign to separate them.
  • Separating texts

    Separated by blank lines

    At least number of consecutive blank lines will be regarded as a sign that means a topic ends and another topic starts.

    Ensure in each topic there are no consecutive blank lines that its numbers equal or exceed the "At Least" number.

    Sample text:

    In this sample text, the "At Least" number is set as 1. The one consecutive blank line between topic 1 and topic 2 and the two consecutive blank lines between topic 2 and topic 3 will both be regarded as separating signs.

    This is Title 1
    Here is the content of the topic 1.
    Here is the content of the topic 1.
    Here is the content of the topic 1.
    Here is the content of the topic 1.

    This is Title 2
    Here is the content of the topic 2.
    Here is the content of the topic 2.
    Here is the content of the topic 2.
    Here is the content of the topic 2.


    This is Title 3
    Here is the content of the topic 3.
    Here is the content of the topic 3.
    Here is the content of the topic 3.
    Here is the content of the topic 3.

    Separated by tags occupying whole line

    You can use a customized string to separate the texts into topics. This string must occupy a whole line when it appears in the texts.

    Ensure there is no string the same as the tag string appearing in a whole line of the text of each topic.

    Note: the tag string is case sensitive.

    Sample text:

    In this sample text, the string "{separator}" is set as the separator. The blank lines above it and below it are not necessary.

    This is Title 1
    Here is the content of the topic 1.
    Here is the content of the topic 1.
    Here is the content of the topic 1.
    Here is the content of the topic 1.

    {separator}

    This is Title 2
    Here is the content of the topic 2.
    Here is the content of the topic 2.
    Here is the content of the topic 2.
    Here is the content of the topic 2.

    Separated by tags in front of the titles

    You can set a string that if it appears in front of the text, the text will be regarded as a title. In the other words, it means the previous topic ends and another topic begins.

    Note: the tag string is case sensitive.

    Sample text:

    In this sample text, the string "@" is set as the tag.

    @This is Title 1
    Here is the content of the topic 1.
    Here is the content of the topic 1.
    Here is the content of the topic 1.
    Here is the content of the topic 1.

    @This is Title 2
    Here is the content of the topic 2.
    Here is the content of the topic 2.
    Here is the content of the topic 2.
    Here is the content of the topic 2.



Previous Topic Next Topic