Syntax Highlighting

Discussions

TSS feedback: Syntax Highlighting

  1. Syntax Highlighting (2 messages)

    This is a post to test default syntax highlghting in Jive.

    1. Java code via front-end in a Thread: 

    public class HelloWorld{ public static void main(String[] args) { System.out.println("Hello World!"); }}

    -------

    Admin Edit: Added the code above using { code } tags:

    public class HelloWorld
    {
    	public static void main(String[] args) {
    		System.out.println("Hello World!");
    	}
    }
    
    Edited by: brianb008 on Aug 28, 2014 2:24 PM Edited by: brianb008 on Aug 28, 2014 2:26 PM

    Threaded Messages (2)

  2. Reply[ Go to top ]

    This is a post to test default syntax highlghting in Jive.

    1. Java code via front-end in a Thread: 

    public class HelloWorld{ public static void main(String[] args) { System.out.println("Hello World!"); }}

    -------

    Admin Edit: Added the code above using { code } tags:

    public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } Edited by: brianb008 on Aug 28, 2014 2:24 PM Edited by: brianb008 on Aug 28, 2014 2:26 PM

    Replying to the popst. If you Quote Original Message, the syntax highlighting gets destroyed.

     

  3. Highlighting[ Go to top ]

    <?php 
            // create curl resource 
            $ch = curl_init(); 
     
            // set url 
            curl_setopt($ch, CURLOPT_URL, "example.com"); 
     
            //return the transfer as a string 
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
     
            // $output contains the output string 
            $output = curl_exec($ch); 
     
            // close curl resource to free up system resources 
            curl_close($ch);      
    ?>
    
    <br/>public class HelloWorld { 	public static void main(String[] args) { 		System.out.println("Hello World!"); 	} }
    
    Edited by: brianb008 on Sep 2, 2014 11:47 AM Edited by: brianb008 on Sep 3, 2014 4:51 PM