|
29 | 29 | <p>
|
30 | 30 | This dialogue box is displayed when the <em>File | Save Unit</em> menu
|
31 | 31 | option is clicked. It is used to specify the file name, file type and
|
32 |
| - formatting information for the source code unit that is to be saved. |
| 32 | + formatting information for the unit that is to be saved. |
33 | 33 | </p>
|
34 | 34 | <p>
|
35 | 35 | All currently selected snippets, with the exception of any
|
|
43 | 43 | </p>
|
44 | 44 | <p>
|
45 | 45 | You specify the name and folder for the file where the unit will be saved
|
46 |
| - in in the usual way. Note that the chosen file name, minus its extension |
| 46 | + in in the usual way. <strong class="warning">Warning:</strong> the chosen file name, minus its extension |
47 | 47 | must be a valid Pascal unit name.
|
48 | 48 | </p>
|
49 | 49 | <p>
|
|
52 | 52 | </p>
|
53 | 53 | <ul>
|
54 | 54 | <li>
|
55 |
| - A Pascal unit file (.pas) - The code is written to a file with |
| 55 | + A Pascal unit file (.pas) – The code is written to a file with |
56 | 56 | extension .pas. The unit is given a name based on the file name.
|
57 | 57 | </li>
|
58 | 58 | <li>
|
59 |
| - A plain text file (.txt) - This is the same as the Pascal unit file |
60 |
| - except that the extension is .txt rather than .pas. |
| 59 | + A plain text file (.txt) – This is the same as the Pascal unit |
| 60 | + file except that the extension is .txt rather than .pas. |
61 | 61 | </li>
|
62 | 62 | <li>
|
63 |
| - An HTML file (.html) - This option writes the source code out as a |
64 |
| - valid XHTML document that uses CSS to format the code. The document can |
65 |
| - contain syntax highlighting if the <em>Use syntax highlighting</em> |
66 |
| - check box is checked. |
| 63 | + An HTML file (.html) – This option writes the source code out as a |
| 64 | + valid XHTML document that uses embedded CSS to format the code. The |
| 65 | + source code will be syntax highlighted if the <em>Use syntax |
| 66 | + highlighting</em> check box is checked. |
67 | 67 | </li>
|
68 | 68 | <li>
|
69 |
| - A rich text file (.rtf) - The source code is written out as an RTF |
| 69 | + A rich text file (.rtf) – The source code is written out as an RTF |
70 | 70 | document. Again syntax highlighting can be used if the <em>Use syntax
|
71 | 71 | highlighting</em> check box is checked.
|
72 | 72 | </li>
|
73 | 73 | </ul>
|
74 | 74 | <p>
|
75 | 75 | Each snippet's description can be written as a Pascal comment to the
|
76 | 76 | output file. Use the <em>Comment style</em> drop down list to specify the
|
77 |
| - style of commenting to be used. Comments can be inhibited using by |
78 |
| - selecting the <em>No comments</em> option from the list. If the |
79 |
| - <em>Truncate comments to 1st paragraph</em> check box is ticked then only |
80 |
| - the first paragraph of the snippet's description is used. Clearing this |
81 |
| - check box means that all of the description is used. |
| 77 | + style of commenting to be used. Such comments can be inhibited by |
| 78 | + selecting the <em>No descriptive comments</em> option from the list. If |
| 79 | + the <em>Truncate comments to 1st paragraph</em> check box is ticked then |
| 80 | + only the first paragraph of each snippet's description is used. Clearing |
| 81 | + this check box means that the full text of snippet descriptions are used. |
82 | 82 | </p>
|
| 83 | + <p> |
| 84 | + The output file encoding can be be specified in the <em>File Encoding</em> |
| 85 | + drop down list. Options vary depending on the file type. Some file types |
| 86 | + support only a single encoding. The encodings are: |
| 87 | + </p> |
| 88 | + <ul> |
| 89 | + <li> |
| 90 | + <em>ANSI (Default)</em> – the system default ANSI encoding. |
| 91 | + Available for both plain text and Pascal unit files and as the only |
| 92 | + option for rich text files. |
| 93 | + </li> |
| 94 | + <li> |
| 95 | + <em>UTF-8</em> – UTF-8 encoding, with BOM<sup>†</sup>. |
| 96 | + Available for both plain text and Pascal unit files and as the only |
| 97 | + option for XHTML files. If used for Pascal units be warned that the |
| 98 | + unit will only compile with compilers that support Unicode source |
| 99 | + files. |
| 100 | + </li> |
| 101 | + <li> |
| 102 | + <em>Unicode (Little Endian)</em> – UTF-16 LE encoding, with |
| 103 | + BOM<sup>†</sup>. Available for plain text files only. |
| 104 | + </li> |
| 105 | + <li> |
| 106 | + <em>Unicode (Big Endian)</em> – UTF-16 BE encoding, with |
| 107 | + BOM<sup>†</sup>. Available for plain text files only. |
| 108 | + </li> |
| 109 | + </ul> |
83 | 110 | <p>
|
84 | 111 | The output can be previewed by clicking the <em>Preview</em> button. This
|
85 | 112 | displays the source code in a dialogue box, formatted according to your
|
86 | 113 | selections. Text in the preview can be selected and copied to the
|
87 | 114 | clipboard if required.
|
88 | 115 | </p>
|
89 | 116 | <p>
|
90 |
| - Use the <em>Save</em> button to write the source code to disk or <em> |
91 |
| - Cancel</em> to abort. |
| 117 | + Use the <em>Save</em> button to write the unit to disk or <em>Cancel</em> |
| 118 | + to abort. |
| 119 | + </p> |
| 120 | + <h3> |
| 121 | + Footnote |
| 122 | + </h3> |
| 123 | + <p> |
| 124 | + † BOM = Byte Order Mark or Preamble: a sequence of bytes at the |
| 125 | + start of a text file that identifies its encoding. |
92 | 126 | </p>
|
93 | 127 | </body>
|
94 | 128 | </html>
|
0 commit comments