Ynote Classic supports intelligent syntax highlighting and autocompletion for more than 35 language and support for
To switch Between syntax highlighting, use the View->Syntax Highlight->{your language} command.
Ynote Classic has 30 inbuilt Syntax Highlighting Schemes. Custom Schemes can be added.
Ynote Supports use of FastcoloredTextBox supported XML file for syntax highlighting. You need to create an xml file for syntax highlighting and save it to the '{ynotepath}\Highlighters' directory. You can also share your Syntax Highlighting File on the Resources site -> http://ynoteplugins.codeplex.com
The file may contain information about styles, rules of syntax highlighting, folding parameters and brackets.
Below is a list of valid tags and attributes to them:
<doc>...</doc>
- root XML node. <brackets left="..." right="..." left2="..." right2="..." />
- sets the brackets for highlighting
<style name="..." color="..." backColor="..." fontStyle="..." />
- sets the style called name. Tag <style>
creates only styles of type TextStyle
. color
and backColor
determine
foreground and background color. Allowed as a string
color name or hex representation of the form #RGB or #ARGB.fontStyle
- enumeration of FontStyle
parameters.<style>
determines the order of rendering these styles.
<rule options="...">regex pattern</rule>
- sets rule of highlighting. style
- style name described in the tags <style>
. options
- enumeration of RegexOptions
parameters.
The contents of the tag - regex pattern for highlighting. <folding start="..." finish="..." options="...">
- specifies the rules for folding. start
and finish
set regular expressions to the beginning and end of the block. options
-
enumeration of RegexOptions
parameters. An example of HTML Highlighting
<doc>
<brackets left="<" right=">"/>
<style name="Maroon"color="Maroon"fontStyle="Bold,Italic"/>
<style name="Blue" color="Blue"/>
<rule style="Blue"><|/>|</|></rule>
<rule style="Maroon"><(?<range>[!\w\d]+)</rule>
<rule style="Maroon"></(?<range>[\w\d]+)></rule>
<folding start="<div"finish="</div>"options="IgnoreCase"/>
</doc>