ErosOlmi
08-01-2011, 03:49
I'm testing a new way of code Syntax Coloring in forum posts.
Syntax coloring is performed at client-side level (not server side) so speed is influenced by your local computer.
I'm using SyntaxHighlighter 3.0.83 (http://alexgorbatchev.com/SyntaxHighlighter/)
Currently it just support very very few of the many thinBasic keywords because first I need to test it deeply.
Syntax coloring is activated with the usual BBC CODE Tag without any other needs.
Syntax coloring is active in forum, articles, blogs, support area and I think in all other places.
Example:
'---This is a single line comment
function helloSyntaxHighlighter()
Dim MyLong as long
dim MyString as string
MyLong = 1
MyLong = not MyLong
MyString = "abcdeXXX" '---This is a comment inside a code line
End function
Copy Source code
In order to copy source code it into your editor, just double click on any part of the code and than use standard CTRL+C. Just that simple.
More info when I will advance more in understanding SyntaxHighlighter JavaScript code.
Eros
Syntax coloring is performed at client-side level (not server side) so speed is influenced by your local computer.
I'm using SyntaxHighlighter 3.0.83 (http://alexgorbatchev.com/SyntaxHighlighter/)
Currently it just support very very few of the many thinBasic keywords because first I need to test it deeply.
Syntax coloring is activated with the usual BBC CODE Tag without any other needs.
Syntax coloring is active in forum, articles, blogs, support area and I think in all other places.
Example:
'---This is a single line comment
function helloSyntaxHighlighter()
Dim MyLong as long
dim MyString as string
MyLong = 1
MyLong = not MyLong
MyString = "abcdeXXX" '---This is a comment inside a code line
End function
Copy Source code
In order to copy source code it into your editor, just double click on any part of the code and than use standard CTRL+C. Just that simple.
More info when I will advance more in understanding SyntaxHighlighter JavaScript code.
Eros