dp.SyntaxHighlighter 1.4.1 Tests and Samples (
dreamprojections.com/syntaxhighlighter
)
JavaScript
Languages:
C#
CSS
C++
Delphi
Java
JavaScript
PHP
Python
Ruby
SQL
Visual Basic
XML / HTML
Features:
Smart tabs
First line
Expand code
Show columns
No gutter
/*********************************** ** Multiline block comments **********************************/ var stringWithUrl1 = "http://blog.dreamprojections.com"; var stringWithUrl2 = 'http://www.dreamprojections.com'; // callback for the match sorting dpSyntaxHighlighter.prototype.SortCallback = function(m1, m2) { // sort matches by index first if(m1.index < m2.index) return -1; else if(m1.index > m2.index) return 1; else { /* // if index is the same, sort by length if(m1.length < m2.length) return -1; else if(m1.length > m2.length) return 1; */ } alert('hello // world'); return 0; }