Syntax.js - Example - Tabs

This is an example of of how to use Syntax.js to highlight the code in a DOM element using tabs.

Download Now

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

Syntax.js - Basic

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