gino CMS  2.5.0
gino รจ un CMS scritto in PHP che offre tutti gli strumenti necessari per poter creare un sito web e gestire i contenuti al suo interno in maniera semplice ed efficace, svincolando l'amministratore da conoscenze tecniche di programmazione
htmlembedded.js File Reference

Functions

CodeMirror defineMode ("htmlembedded", function(config, parserConfig){var scriptStartRegex=parserConfig.scriptStartRegex||/^<%/i, scriptEndRegex=parserConfig.scriptEndRegex||/^%>/i;var scriptingMode, htmlMixedMode;function htmlDispatch(stream, state){if(stream.match(scriptStartRegex, false)){state.token=scriptingDispatch;return scriptingMode.token(stream, state.scriptState);}else return htmlMixedMode.token(stream, state.htmlState);}function scriptingDispatch(stream, state){if(stream.match(scriptEndRegex, false)){state.token=htmlDispatch;return htmlMixedMode.token(stream, state.htmlState);}else return scriptingMode.token(stream, state.scriptState);}return{startState:function(){scriptingMode=scriptingMode||CodeMirror.getMode(config, parserConfig.scriptingModeSpec);htmlMixedMode=htmlMixedMode||CodeMirror.getMode(config,"htmlmixed");return{token:parserConfig.startOpen?scriptingDispatch:htmlDispatch, htmlState:CodeMirror.startState(htmlMixedMode), scriptState:CodeMirror.startState(scriptingMode)};}, token:function(stream, state){return state.token(stream, state);}, indent:function(state, textAfter){if(state.token==htmlDispatch) return htmlMixedMode.indent(state.htmlState, textAfter);else if(scriptingMode.indent) return scriptingMode.indent(state.scriptState, textAfter);}, copyState:function(state){return{token:state.token, htmlState:CodeMirror.copyState(htmlMixedMode, state.htmlState), scriptState:CodeMirror.copyState(scriptingMode, state.scriptState)};}, electricChars:"/{}:", innerMode:function(state){if(state.token==scriptingDispatch) return{state:state.scriptState, mode:scriptingMode};else return{state:state.htmlState, mode:htmlMixedMode};}};},"htmlmixed")
 
CodeMirror defineMIME ("application/x-ejs",{name:"htmlembedded", scriptingModeSpec:"javascript"})
 

Function Documentation

CodeMirror defineMIME ( "application/x-ejs"  ,
{name:"htmlembedded", scriptingModeSpec:"javascript"}   
)
CodeMirror defineMode ( "htmlembedded"  ,
function(config, parserConfig){var scriptStartRegex=parserConfig.scriptStartRegex||/^<%/i, scriptEndRegex=parserConfig.scriptEndRegex||/^%>/i;var scriptingMode, htmlMixedMode;function htmlDispatch(stream, state){if(stream.match(scriptStartRegex, false)){state.token=scriptingDispatch;return scriptingMode.token(stream, state.scriptState);}else return htmlMixedMode.token(stream, state.htmlState);}function scriptingDispatch(stream, state){if(stream.match(scriptEndRegex, false)){state.token=htmlDispatch;return htmlMixedMode.token(stream, state.htmlState);}else return scriptingMode.token(stream, state.scriptState);}return{startState:function(){scriptingMode=scriptingMode||CodeMirror.getMode(config, parserConfig.scriptingModeSpec);htmlMixedMode=htmlMixedMode||CodeMirror.getMode(config,"htmlmixed");return{token:parserConfig.startOpen?scriptingDispatch:htmlDispatch, htmlState:CodeMirror.startState(htmlMixedMode), scriptState:CodeMirror.startState(scriptingMode)};}, token:function(stream, state){return state.token(stream, state);}, indent:function(state, textAfter){if(state.token==htmlDispatch) return htmlMixedMode.indent(state.htmlState, textAfter);else if(scriptingMode.indent) return scriptingMode.indent(state.scriptState, textAfter);}, copyState:function(state){return{token:state.token, htmlState:CodeMirror.copyState(htmlMixedMode, state.htmlState), scriptState:CodeMirror.copyState(scriptingMode, state.scriptState)};}, electricChars:"/{}:", innerMode:function(state){if(state.token==scriptingDispatch) return{state:state.scriptState, mode:scriptingMode};else return{state:state.htmlState, mode:htmlMixedMode};}};}  ,
"htmlmixed"   
)