nl_tokens: Common method for detecting output profile
pl_tokens: function ( editor ) { var syntax = editor . getSyntax ( ) ; // get profile from syntax definition var profile = require ( 'resources' ) . findItem ( syntax , 'profile' ) ; if ( profile ) { return profile ; } <mask> ( syntax ) { case 'xml' : case 'xsl' : return 'xml' ; case 'css' : if ( this . isInlineCSS ( editor ) ) { return 'line' ; } break ; case 'html' : var profile = require ( 'resources' ) . getVariable ( 'profile' ) ; if ( ! profile ) { // no forced profile, guess from content // html or xhtml? profile = this . isXHTML ( editor ) ? 'xhtml' : 'html' ; } return profile ; } return 'xhtml' ; }