Coloring your source code, and pasting into a Web Page
 

You can colorize your source code and publish it on to a Web Page.

Whilst working from the Web Editor,

  1. Select "Insert -> Source Publisher" from the menu:

 

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

 

 

  1. 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]+)?

 

  1. 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:

 

  1. Select "OK" .

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

 

  1. Copy your colorized code, then click on "Close".

  2. 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 &quot;<b>Insert</b> -&gt; <b>Source Publisher</b>&quot; from the menu:</li>
</ol>
<p align="center">&nbsp;</p>
<p>&nbsp;</p>

</body>

</html>