Home > Syntax Highlighter > SyntaxHighlighterPro demo

SyntaxHighlighterPro demo

November 27th, 2009
  1. C Example:
    #include 
    main()
    {
             printf ("Hello World!\n");
    }
        
  2. Java Example:

    public class HelloWorld{
        public static void main(String [] args) {
            System.out.println("Hello world!");
        }
    }
    
  3. XML Example:

    
       Tove
       Jani
       Reminder
       Don't forget me this weekend!
    
    
  1. January 13th, 2011 at 09:54 | #1

    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!!

  2. Joe
    January 27th, 2011 at 11:37 | #2

    Please try to update the javascript to the latest version:
    http://alexgorbatchev.com/SyntaxHighlighter/download/

  1. No trackbacks yet.
Comments are closed.