Alien-CodePress
view release on metacpan or search on metacpan
cp/codepress/languages/autoit.js view on Meta::CPAN
*/
// AutoIt
Language.syntax = [
{ input : /({|}|\(|\))/g, output : '<b>$1</b>' }, // Brackets
{ input : /(\*|\+|-)/g, output : '<b>$1</b>' }, // Operator
{ input : /\"(.*?)(\"|<br>|<\/P>)/g, output : "<s>\"$1$2</s>" }, // strings double
{ input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single
{ input : /\b([\d]+)\b/g, output : '<ins>$1</ins>' }, // Numbers
{ input : /#(.*?)(<br>|<\/P>)/g, output : '<i>#$1</i>$2' }, // Directives and Includes
{ input : /(\$[\w\.]*)/g, output : '<var>$1</var>' }, // vars
{ input : /(_[\w\.]*)/g, output : '<a>$1</a>' }, // underscored word
{ input : /(\@[\w\.]*)/g, output : '<em>$1</em>' }, // Macros
{ input : /\b(Abs|ACos|AdlibDisable|AdlibEnable|Asc|AscW|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|Binary|BinaryLen|BinaryMid|BinaryToString|BitAND|BitNOT|BitOR|BitSHIFT|BitXOR|BlockInput|Break|Call|CDTray|Ceiling|Chr...
{ input : /\B;(.*?)(<br>|<\/P>)/g, output : '<cite>;$1</cite>$2' }, // comments
{ input : /#CS(.*?)#CE/g, output : '<cite>#CS$1#CE</cite>' } // Block Comments
]
Language.snippets = []
Language.complete = [
cp/codepress/languages/php.js view on Meta::CPAN
// PHP
Language.syntax = [
{ input : /(<[^!\?]*?>)/g, output : '<b>$1</b>' }, // all tags
{ input : /(<style.*?>)(.*?)(<\/style>)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // style tags
{ input : /(<script.*?>)(.*?)(<\/script>)/g, output : '<ins>$1</ins><ins>$2</ins><ins>$3</ins>' }, // script tags
{ 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 : /(<\?)/g, output : '<strong>$1' }, // <?.*
{ input : /(\?>)/g, output : '$1</strong>' }, // .*?>
{ input : /(<\?php|<\?=|<\?|\?>)/g, output : '<cite>$1</cite>' }, // php tags
{ input : /(\$[\w\.]*)/g, output : '<a>$1</a>' }, // vars
{ input : /\b(false|true|and|or|xor|__FILE__|exception|__LINE__|array|as|break|case|class|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|for|foreach|function|globa...
{ input : /([^:])\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3' }, // php comments //
{ input : /([^:])#(.*?)(<br|<\/P)/g, output : '$1<i>#$2</i>$3' }, // php comments #
{ input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' }, // php comments /* */
{ input : /(<!--.*?-->.)/g, output : '<big>$1</big>' } // html comments
]
Language.snippets = [
{ input : 'if', output : 'if($0){\n\t\n}' },
{ input : 'ifelse', output : 'if($0){\n\t\n}\nelse{\n\t\n}' },
( run in 0.515 second using v1.01-cache-2.11-cpan-b61123c0432 )