| You can
colorize your source code and publish it on to a Web Page. Whilst
working from the Web Editor, - Select "Insert -> Source
Publisher" from the menu:

Paste the following HTML code into to the "Code" area, then select
the "Options" tab:

From the list of Languages select "HTML". However you can use any of the
predefined Languages, or you could create your own:
 | |
Default Color Scheme: |
Name of default color scheme for current language | |
Case Sensitive: | Are
keywords case sensitive ? | |
Keywords: | Four
groups of comma separated keywords. E.g.
struct,goto,const,declspec,public,private,protected | |
Symbols: | The set of
symbols (without spaces or commas) E.g.
`!@$%^&*()+|=-~[]{}:;/?.><\,' | |
Line Comments: | Comma
separated regular expressions to highlight line comments. E.g. //.* | |
Block Comments: |
OpenBracket1 CloseBracket1, then comma, then OpenBracket2
CloseBracket2, and so on... E.g. (* *),{ } | |
Strings: | Comma
separated regular expressions to highlight strings. E.g.
\"([^\]\\"|[^"])*("|$),'(\\'|[^'])+' | |
Numbers: | Comma
separated regular expressions to highlight numbers. E.g.
0[xX][0-9a-fA-F]+,[0-9.]+(([eE][-\+]?)?[0-9]+)? |
|
|
Select the "Colors Scheme" tab, and pick "Visual Studio".
However you can use any of the predefined color schemes, or you could
create your own:

Select "OK" . In the "Source
Publisher" window, select the "Preview" to see your colourized
code:

Copy your colorized code, then click on "Close".
Before you paste your colorized code into your Web Page, you must select "Format
-> Formatted" from the menu, in the Web Editor.
<html>
<head>
<title>Coloring your source code, and pasting into a Web Page</title>
</head>
<body>
<p><b><font size="6">Coloring your source code, and pasting into a Web Page</font></b></p>
<hr color="#000000">
<p>You can colorize your source code and publish it on to a Web Page.</p>
<p>Whilst working from the Web Editor, </p>
<ol>
<li>Select "<b>Insert</b> -> <b>Source Publisher</b>" from the menu:</li>
</ol>
<p align="center"> </p>
<p> </p>
</body>
</html> |
|