color-schemes/prettyprint/halflife.html

104 lines
3.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Halflife</title>
<style>
/* ------ START OF THEME ------ */
/*
* Halflife
* Prettify CSS Theme.
*
* Copyright (c) 2014 Dayle Rees
*/
pre.theme-halflife {
background-color: #222222;
padding: 2em;
font-size:.7em;
color: #cccccc;
}
pre.theme-halflife code {
font-family: 'Source Code Pro', Monaco, Consolas, "Lucida Console", monospace;
}
pre.theme-halflife .pln {
color: #cccccc;
}
pre.theme-halflife .str {
color: #F9D423;
}
pre.theme-halflife .kwd {
color: #FC913A;
}
pre.theme-halflife .com {
color: #555555;
}
pre.theme-halflife .typ {
color: #7D8991;
}
pre.theme-halflife .lit {
color: #F9D423;
}
pre.theme-halflife .pun,
pre.theme-halflife .opn,
pre.theme-halflife .clo {
color: #cccccc;
}
pre.theme-halflife .tag {
color: #FC913A;
}
pre.theme-halflife .atn {
color: #7D8991;
}
pre.theme-halflife .atv {
color: #F9D423;
}
pre.theme-halflife .dec,
pre.theme-halflife .var {
color: #F9D423;
}
pre.theme-halflife .fun {
color: #FC913A;
}
/* ------- END OF THEME ------- */
</style>
</head>
<body>
<h1>PrettyPrint</h1>
<p>This theme is for <a href="https://code.google.com/p/google-code-prettify/">Google Code Prettify</a> which can be used to syntax highlight code within a &ltpre&gt; tag.</p>
<p>To use, simply copy and paste the CSS from the source of this document into your project, and use with an existing code prettify setup. You can either add the 'theme-halflife' class each &ltpre&gt; element, or just remove it from the CSS to style all of them.</p>
<p>Enjoy!</p>
<pre class="theme-halflife"><code><span class="pun">&lt;?</span><span class="pln">php
</span><span class="com">// app/controllers/ArticleController.php</span><span class="pln">
</span><span class="kwd">class</span><span class="pln"> </span><span class="typ">ArticleController</span><span class="pln"> </span><span class="kwd">extends</span><span class="pln"> </span><span class="typ">BaseController</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
</span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> showIndex</span><span class="pun">()</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="typ">View</span><span class="pun">::</span><span class="pln">make</span><span class="pun">(</span><span class="str">'index'</span><span class="pun">);</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> showSingle</span><span class="pun">(</span><span class="pln">$articleId</span><span class="pun">)</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="typ">View</span><span class="pun">::</span><span class="pln">make</span><span class="pun">(</span><span class="str">'single'</span><span class="pun">);</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="pun">}</span></code></pre>
</body>
</html>