Skip to content

Commit 6cf961f

Browse files
committed
Update Save Snippet Information Dialogue Help topic
Rewritten re the addition of HTML 5, XHTML, plain text and Markdown format options to the original rich text. Also revised re the change to using the more complex TSaveSourceDlg dialogue box that enables syntax highliting, previewing, and choice of file encodings.
1 parent 4b77024 commit 6cf961f

File tree

1 file changed

+79
-7
lines changed

1 file changed

+79
-7
lines changed

Src/Help/HTML/dlg_saveinfo.htm

Lines changed: 79 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,93 @@ <h1>
2828
</h1>
2929
<p>
3030
This dialogue box is displayed when the <em>File | Save Snippet
31-
Information</em> menu option is clicked. It is used to specify the
32-
name of the file into which information about the currently selected
33-
snippet is to be saved.
31+
Information</em> menu option is clicked. It is used to specify the file
32+
name, file type and encoding information for the snippet information
33+
that is to be saved.
3434
</p>
3535
<p>
36-
The saved snippet information is written in rich text format.
36+
The dialogue is a standard Windows save dialogue box with a few added
37+
options.
3738
</p>
3839
<p>
39-
This dialogue is a standard Windows save dialogue box. You specify the
40-
name and folder for the file in the usual way.
40+
You specify the name and folder for the file where the snippet information
41+
is to be written in in the usual way.
4142
</p>
4243
<p>
43-
Use the <em>Save</em> button to write the file to disk or press
44+
Use the <em>Save as type</em> drop down list to specify the type of file
45+
to be saved. Options are:
46+
</p>
47+
<ul>
48+
<li>Plain text.</li>
49+
<li>HTML</li>
50+
<li>XHTML</li>
51+
<li>Rich text format</li>
52+
<li>Markdown</li>
53+
</ul>
54+
<p>
55+
The HTML 5 and XHTML options are very similar and differ only in the
56+
type of HTML that is written. For either type an embedded CSS style
57+
sheet is used to style the document.
58+
</p>
59+
<p>
60+
When any of the HTML 5, XHTML or rich text file types are selected source
61+
code embedded in the snippet information will be syntax highlighted if
62+
the <em>Use syntax highlighting</em> check box is checked.
63+
</p>
64+
<p>
65+
The output file encoding can be be specified in the <em>File Encoding</em>
66+
drop down list. Options vary depending on the file type. Some file types
67+
support only a single encoding. The encodings are:
68+
</p>
69+
<ul>
70+
<li>
71+
<em>ANSI (Default)</em> &ndash; the system default ANSI encoding.
72+
Available as an option for plain text and Markdown file formats.
73+
</li>
74+
<li>
75+
<em>UTF-8</em> &ndash; UTF-8 encoding, with BOM<sup>&dagger;</sup>.
76+
Available as an option for plain text and Markdown file formats and
77+
as the only encoding available for HTML 5 and XHTML file formats.
78+
</li>
79+
<li>
80+
<em>Unicode (Little Endian)</em> &ndash; UTF-16 LE encoding, with
81+
BOM<sup>&dagger;</sup>. Available as an option for plain text files and Markdown
82+
file formats.
83+
</li>
84+
<li>
85+
<em>Unicode (Big Endian)</em> &ndash; UTF-16 BE encoding, with
86+
BOM<sup>&dagger;</sup>. Available as an option for plain text files and Markdown
87+
file formats.
88+
</li>
89+
<li>
90+
<em>ASCII</em> &ndash; The only encoding available for the rich text file.
91+
</li>
92+
</ul>
93+
<p>
94+
The output can be previewed by clicking the <em>Preview</em> button. This
95+
displays the snippet information in a dialogue box, formatted according to your
96+
selections. Text in the preview can be selected and copied to the
97+
clipboard if required.
98+
</p>
99+
<p>
100+
Use the <em>Save</em> button to write the snippet information to disk or choose
44101
<em>Cancel</em> to abort.
45102
</p>
103+
<p>
104+
<strong class="warning">Warning:</strong> When plain text or Markdown formatted
105+
snippet information is written in ANSI format it is possibe that the information
106+
contains characters that can't be represented in the system default ANSI encoding.
107+
If this happens a warning
108+
dialogue box is displayed whenever the snippet information is written to file
109+
or is previewed.
110+
</p>
111+
<h3>
112+
Footnote
113+
</h3>
114+
<p>
115+
&dagger; BOM = Byte Order Mark or Preamble: a sequence of bytes at the
116+
start of a text file that identifies its encoding.
117+
</p>
46118
</body>
47119

48120
</html>

0 commit comments

Comments
 (0)