Sha256: 693406d1552489f7fbbdac051dc38c82c5c6a672b57e64fa6ad6450795903a44

Contents?: true

Size: 1.1 KB

Versions: 59

Compression:

Stored size: 1.1 KB

Contents

/*
 * CodePress regular expressions for Java syntax highlighting
 */
 
// Java
Language.syntax = [
	{ input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>'}, // strings double quote
	{ input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>'}, // strings single quote
	{ 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
	{ input : /([^:]|^)\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3'}, // comments //	
	{ input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' }// comments /* */
]

Language.snippets = []

Language.complete = [
	{ input : '\'',output : '\'$0\'' },
	{ input : '"', output : '"$0"' },
	{ input : '(', output : '\($0\)' },
	{ input : '[', output : '\[$0\]' },
	{ input : '{', output : '{\n\t$0\n}' }		
]

Language.shortcuts = []

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
imagine_cms-4.1.4 app/assets/javascripts/codepress/languages/java.js
imagine_cms-4.1.3 app/assets/javascripts/codepress/languages/java.js
imagine_cms-4.1.2 app/assets/javascripts/codepress/languages/java.js
imagine_cms-4.1.1 app/assets/javascripts/codepress/languages/java.js
imagine_cms-4.1.0 app/assets/javascripts/codepress/languages/java.js
imagine_cms-4.0.1 app/assets/javascripts/codepress/languages/java.js
imagine_cms-4.0.0 app/assets/javascripts/codepress/languages/java.js
unageanu-jiji-0.1.0 html/js/codepress/languages/java.js
unageanu-jiji-1.0.0 html/js/codepress/languages/java.js
unageanu-jiji-1.0.1 html/js/codepress/languages/java.js
unageanu-jiji-1.0.2 html/js/codepress/languages/java.js
unageanu-jiji-1.0.3 html/js/codepress/languages/java.js
unageanu-jiji-1.1.0 html/js/codepress/languages/java.js
unageanu-jiji-1.1.1 html/js/codepress/languages/java.js
unageanu-jiji-1.1.2 html/js/codepress/languages/java.js
unageanu-jiji-1.1.3 html/js/codepress/languages/java.js
unageanu-jiji-1.1.4 html/js/codepress/languages/java.js
imagine_cms-3.0.33 app/assets/javascripts/codepress/languages/java.js
imagine_cms-3.0.32 app/assets/javascripts/codepress/languages/java.js
imagine_cms-3.0.31 app/assets/javascripts/codepress/languages/java.js