28
28
</ h1 >
29
29
< p >
30
30
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.
34
34
</ p >
35
35
< 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.
37
38
</ p >
38
39
< 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.
41
42
</ p >
42
43
< 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 > – 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 > – UTF-8 encoding, with BOM< sup > †</ 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 > – UTF-16 LE encoding, with
81
+ BOM< sup > †</ sup > . Available as an option for plain text files and Markdown
82
+ file formats.
83
+ </ li >
84
+ < li >
85
+ < em > Unicode (Big Endian)</ em > – UTF-16 BE encoding, with
86
+ BOM< sup > †</ sup > . Available as an option for plain text files and Markdown
87
+ file formats.
88
+ </ li >
89
+ < li >
90
+ < em > ASCII</ em > – 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
44
101
< em > Cancel</ em > to abort.
45
102
</ 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
+ † BOM = Byte Order Mark or Preamble: a sequence of bytes at the
116
+ start of a text file that identifies its encoding.
117
+ </ p >
46
118
</ body >
47
119
48
120
</ html >
0 commit comments