Permalink
Browse files

Syntax highlight here docs

  • Loading branch information...
1 parent 84a9565 commit f0977c32bddb0134ec53d3ceb611ebf096844bc2 @rwstauner rwstauner committed Oct 28, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 root/static/js/shBrushPerl.js
@@ -54,6 +54,7 @@
'has extends with before after around override augment';
this.regexList = [
+ { regex: /(<<|&lt;&lt;)((\w+)|(['"])(.+?)\4)[\s\S]+?\n\3\5\n/g, css: 'string' }, // here doc (maybe html encoded)
{ regex: /#.*$/gm, css: 'comments' },
{ regex: /^#!.*\n/g, css: 'preprocessor' }, // shebang
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },

0 comments on commit f0977c3

Please sign in to comment.