gist: 18210 Download_button fork
public
Description:
Radius Syntax Highlight for code_highlighter.js
Public Clone URL: git://gist.github.com/18210.git
radius.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CodeHighlighter.addStyle("radius", {
  comment : {
    exp: /(<!--|#).*\n/
  },
  attribute : {
    exp: /([_a-zA-Z-]+)=/,
    replacement: "<span class=\"$0\">$1</span>="
  },
  tag : {
    exp: /(r:[-_a-zA-Z0-9:]+)/,
    replacement: "<span class=\"$0\">$1</span>"
  },
  value : {
   exp: /["']([a-zA-Z0-9_\-\/].*?)["']/,
   replacement: "\"<span class=\"$0\">$1</span>\""
  }
});
 

Owner

johnmuhl

Revisions

  • 1b093b johnmuhl Wed Oct 29 10:07:04 -0700 2008
  • 1829cf johnmuhl Tue Oct 21 10:08:08 -0700 2008
  • d2bed0 johnmuhl Tue Oct 21 09:51:59 -0700 2008
  • 9d590e johnmuhl Tue Oct 21 09:42:33 -0700 2008
  • 743b89 johnmuhl Tue Oct 21 09:15:00 -0700 2008
  • 96b539 johnmuhl Mon Oct 20 16:27:17 -0700 2008
  • 15217d johnmuhl Mon Oct 20 16:10:09 -0700 2008