PluginProbe
Wp-Insert / 1.3.3
Wp-Insert v1.3.3
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / codepress / languages / java.js

java.js in Wp-Insert 1.3.3, at codepress/languages/java.js

25 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * CodePress regular expressions for Java syntax highlighting
3 */
4
5 // Java
6 Language.syntax = [
7 { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>'}, // strings double quote
8 { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>'}, // strings single quote
9 { input : /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/g, output : '<b>$1</b>'}, // reserved words
10 { input : /([^:]|^)\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3'}, // comments //
11 { input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' }// comments /* */
12 ]
13
14 Language.snippets = []
15
16 Language.complete = [
17 { input : '\'',output : '\'$0\'' },
18 { input : '"', output : '"$0"' },
19 { input : '(', output : '\($0\)' },
20 { input : '[', output : '\[$0\]' },
21 { input : '{', output : '{\n\t$0\n}' }
22 ]
23
24 Language.shortcuts = []
25