Contributors: Nikolay Lisienko <info@neor.ru>, Heiko August <post@auge8472.de>, Travis Odom <travis.a.odom@gmail.com>, Vadimtro <vadimtro@yahoo.com>, Benjamin Auder <benjamin.auder@gmail.com>
Category: common
*/
hljs.registerLanguage('sql',function(hljs){
varCOMMENT_MODE=hljs.COMMENT('--','$');
return{
case_insensitive:true,
illegal:/[<>{}*#]/,
contains:[
{
beginKeywords:
'begin end start commit rollback savepoint lock alter create drop rename call '+
'delete do handler insert load replace select truncate update set show pragma grant '+
'merge describe use explain help declare prepare execute deallocate release '+
begin:/\b(print|exec)\(/// don’t highlight keywords-turned-functions in Python 3
}
]
};
});
/*
Language: JSON
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
Category: common, protocols
*/
hljs.registerLanguage('json',function(hljs){
varLITERALS={literal:'true false null'};
varTYPES=[
hljs.QUOTE_STRING_MODE,
hljs.C_NUMBER_MODE
];
varVALUE_CONTAINER={
end:',',endsWithParent:true,excludeEnd:true,
contains:TYPES,
keywords:LITERALS
};
varOBJECT={
begin:'{',end:'}',
contains:[
{
className:'attr',
begin:/"/,end:/"/,
contains:[hljs.BACKSLASH_ESCAPE],
illegal:'\\n',
},
hljs.inherit(VALUE_CONTAINER,{begin:/:/})
],
illegal:'\\S'
};
varARRAY={
begin:'\\[',end:'\\]',
contains:[hljs.inherit(VALUE_CONTAINER)],// inherit is a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
global preferred_html_style_developper_mode python: portal_preferences.getPreferredHtmlStyleDevelopperMode();
global preferred_html_style_translator_mode python: portal_preferences.getPreferredHtmlStyleTranslatorMode();
global preferred_html_style_contextual_help python: portal_preferences.getPreferredHtmlStyleContextualHelp();
global preferred_html_style_acknowledgeable_message python: portal_preferences.getPreferredHtmlStyleAcknowledgeableMessage();
global developper_shortcut_render python: (preferred_html_style_developper_mode or preferred_html_style_translator_mode) and portal.developper_shortcut_render;
global selected_language portal/Localizer/get_selected_language;
<span class="ci-web-page-header-bar-logo-title" tal:content="python: web_site_title or ''" i18n:translate="" i18n:domain="ui"></span>
</tal:block>
</div>
<div class="ci-web-header-bar-logo-center"></div>
<div class="ci-web-header-bar-logo-right">
<tal:block tal:condition="has_contact_section">
<a tal:attributes="href string: ${web_site_url}/contact" title="Contact us for more information." i18n:attributes="title" i18n:translate="" i18n:domain="ui">Contact</a>
<tal:block tal:define="item_list python: [x for x in here.WebSection_getLatestDocumentListFromUserPreferences(limit=[0,5], sort_on=[('modification_date', 'descending')])]">