SyntaxHighlighterPro demo
- C Example:
#include
main() { printf ("Hello World!\n"); } -
Java Example:
public class HelloWorld{ public static void main(String [] args) { System.out.println("Hello world!"); } } -
XML Example:
Tove Jani Reminder Don't forget me this weekend!
Hello
I find a bug in the output of brush: cpp. Have you found that there is a (line 6) in the C example.
I met the same problem too while using brush: cpp
but it works fine if I use [cpp] [/cpp] blocks.
Due to my client’s limitation, I can only use this format ; otherwise these symbols ” will be turned into ‘<’ and ‘>’
Hope someone can solve this problem. If you have some solution, please let me know.
Thanks!!
Please try to update the javascript to the latest version:
http://alexgorbatchev.com/SyntaxHighlighter/download/