Syntax.js - Bootstrap

This is a basic example of how to use Syntax.js to highlight code inside a DOM element alongside Bootstrap.

                    var something = true;
    
                    if ( something ) {
                        console.log( "Output is written." ); // Comment
                        
                        /* Multi-line
                        comment */
                    }
                

                    bool something = true;
                    int something_else = 1;


                    
    
                    if ( something ) {
                        Console.WriteLine( "Output is written." ); // Comment

                        if ( something_else >= 1 ) {
                            Console.WriteLine( "Output is written again." ); // Another comment
                        }
                    }
                

int something = 1; if ( something >= 1 ) { Console.WriteLine( "Output is written." ); // Comment } string @"A multi-line string";

Highlighting:


Destroying:


Languages:


Aliases:


Configuration:


Additional Data: