From 9c1d0dd3041f1a062f2d9708c0dc6eaa7f089c80 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 12 Mar 2011 15:45:53 +0100 Subject: Calculate the number of comments for each article. Add Google Code Prettify. --- static-files/journal/prettify/lang-wiki.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 static-files/journal/prettify/lang-wiki.js (limited to 'static-files/journal/prettify/lang-wiki.js') diff --git a/static-files/journal/prettify/lang-wiki.js b/static-files/journal/prettify/lang-wiki.js new file mode 100644 index 0000000..00a1b6b --- /dev/null +++ b/static-files/journal/prettify/lang-wiki.js @@ -0,0 +1 @@ +PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t \xA0a-gi-z0-9]+/,null,' \xa0abcdefgijklmnopqrstuvwxyz0123456789'],[PR.PR_PUNCTUATION,/^[=*~\^\[\]]+/,null,'=*~^[]']],[['lang-wiki.meta',/(?:^^|\r\n?|\n)(#[a-z]+)\b/],[PR.PR_LITERAL,/^(?:[A-Z][a-z][a-z0-9]+[A-Z][a-z][a-zA-Z0-9]+)\b/],['lang-',/^\{\{\{([\s\S]+?)\}\}\}/],['lang-',/^`([^\r\n`]+)`/],[PR.PR_STRING,/^https?:\/\/[^\/?#\s]*(?:\/[^?#\s]*)?(?:\?[^#\s]*)?(?:#\S*)?/i],[PR.PR_PLAIN,/^(?:\r\n|[\s\S])[^#=*~^A-Zh\{`\[\r\n]*/]]),['wiki']),PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_KEYWORD,/^#[a-z]+/i,null,'#']],[]),['wiki.meta']) \ No newline at end of file -- cgit v1.2.3