Source syntax highlighting
Man.. haven't posted in a while. I finally threw out the old "new" syntax highlighter in favor of one I wrote myself. The other one was XML-based for each language and rendered code using XSL.. great for small pieces of code.. but it gets *extremely* slow as the amount of code gets bigger.
Anyway, the new one works in a similar manner. I was a bit ambitious since it went pretty well.
You can now utilize the regular [ source lang = "???" ] tags for the following languages:
Visual Basic / VBScript (lang="vb" or lang="vbscript")
Java (lang="java")
C/C++ (lang="c" or lang="cpp") .. default
X86 Assembly (lang="asm")
Update! Added:
C# (lang="c#" or lang="csharp")
javascript/JScript (lang="javascript" or lang="jscript")
Update! Added:
Python (lang="python")
.. I think I'm done for now. =P
Sample here.
Anyway, the new one works in a similar manner. I was a bit ambitious since it went pretty well.
You can now utilize the regular [ source lang = "???" ] tags for the following languages:
Visual Basic / VBScript (lang="vb" or lang="vbscript")
Java (lang="java")
C/C++ (lang="c" or lang="cpp") .. default
X86 Assembly (lang="asm")
Update! Added:
C# (lang="c#" or lang="csharp")
javascript/JScript (lang="javascript" or lang="jscript")
Update! Added:
Python (lang="python")
.. I think I'm done for now. =P
Sample here.
0
Sign in to follow this
Followers
0
1 Comment
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now