Highlighter - js
function helloSyntaxHighlighter()
{
return "hi!";
}
Highlighter - html
<html>
<header>
<title>{title}</title>
</header>
<body>
{content}
</body>
</html>
Highlighter - css
table {
border-collapse: collapse;
border-spacing: 0;
}
table.table {
width: 100%;
}
table.table td {
padding: 5px;
border: 1px solid #EAEAEA;
vertical-align: middle;
}
table.table th {
padding: 5px;
border: 1px solid #EAEAEA;
background: #F5F5F5;
vertical-align: middle;
}
Highlighter - php
$template = array(
'vars' => array(
'what' => engineName,
'version' => engineVersion,
'home' => home,
'titles' => home_title,
'home_title' => home_title,
'mainblock' => '',
'htmlvars' => '',
),
);
Highlighter - twig
{# --------- arrays ----------------------------------- #}
{{ array.key }}
{# --------- filters ---------------------------------- #}
{{ var|escape }}
{{ data|json_encode() }}
{{ "now"|date("m/d/Y") }}
{# --------- functions -------------------------------- #}
{{ cycle(fruits, i) }}
{{ attribute(object, method, arguments) }}
{{ dump(user) }}
{# --------- tags ------------------------------------- #}
{% for i in 0..10 %}
* {{ i }}
{% endfor %}
{% if kenny.home %}
Kenny is at home.
{% elseif kenny.school %}
Kenny is at school.
{% else %}
Kenny is at Starbucks
{% endif %}
{% include 'header.html' %}
Body
{% include 'footer.html' %}
{# --------- multiline comments ------------------------ #}
{# note: disabled template because we no longer use this
{% for user in users %}
...
{% endfor %}
#}