Created
August 11, 2010 22:55
-
-
Save JoshRosen/519957 to your computer and use it in GitHub Desktop.
Test of Hyde Syntax Highlighting for PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.highlight .hll { background-color: #404040 } | |
.highlight { background: #202020; color: #d0d0d0 } | |
.highlight .c { color: #999999; font-style: italic } /* Comment */ | |
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ | |
.highlight .g { color: #d0d0d0 } /* Generic */ | |
.highlight .k { color: #6ab825; font-weight: bold } /* Keyword */ | |
.highlight .l { color: #d0d0d0 } /* Literal */ | |
.highlight .n { color: #d0d0d0 } /* Name */ | |
.highlight .o { color: #d0d0d0 } /* Operator */ | |
.highlight .x { color: #d0d0d0 } /* Other */ | |
.highlight .p { color: #d0d0d0 } /* Punctuation */ | |
.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */ | |
.highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ | |
.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */ | |
.highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ | |
.highlight .gd { color: #d22323 } /* Generic.Deleted */ | |
.highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ | |
.highlight .gr { color: #d22323 } /* Generic.Error */ | |
.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ | |
.highlight .gi { color: #589819 } /* Generic.Inserted */ | |
.highlight .go { color: #cccccc } /* Generic.Output */ | |
.highlight .gp { color: #aaaaaa } /* Generic.Prompt */ | |
.highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ | |
.highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ | |
.highlight .gt { color: #d22323 } /* Generic.Traceback */ | |
.highlight .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ | |
.highlight .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ | |
.highlight .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ | |
.highlight .kp { color: #6ab825 } /* Keyword.Pseudo */ | |
.highlight .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ | |
.highlight .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ | |
.highlight .ld { color: #d0d0d0 } /* Literal.Date */ | |
.highlight .m { color: #3677a9 } /* Literal.Number */ | |
.highlight .s { color: #ed9d13 } /* Literal.String */ | |
.highlight .na { color: #bbbbbb } /* Name.Attribute */ | |
.highlight .nb { color: #24909d } /* Name.Builtin */ | |
.highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */ | |
.highlight .no { color: #40ffff } /* Name.Constant */ | |
.highlight .nd { color: #ffa500 } /* Name.Decorator */ | |
.highlight .ni { color: #d0d0d0 } /* Name.Entity */ | |
.highlight .ne { color: #bbbbbb } /* Name.Exception */ | |
.highlight .nf { color: #447fcf } /* Name.Function */ | |
.highlight .nl { color: #d0d0d0 } /* Name.Label */ | |
.highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ | |
.highlight .nx { color: #d0d0d0 } /* Name.Other */ | |
.highlight .py { color: #d0d0d0 } /* Name.Property */ | |
.highlight .nt { color: #6ab825; font-weight: bold } /* Name.Tag */ | |
.highlight .nv { color: #40ffff } /* Name.Variable */ | |
.highlight .ow { color: #6ab825; font-weight: bold } /* Operator.Word */ | |
.highlight .w { color: #666666 } /* Text.Whitespace */ | |
.highlight .mf { color: #3677a9 } /* Literal.Number.Float */ | |
.highlight .mh { color: #3677a9 } /* Literal.Number.Hex */ | |
.highlight .mi { color: #3677a9 } /* Literal.Number.Integer */ | |
.highlight .mo { color: #3677a9 } /* Literal.Number.Oct */ | |
.highlight .sb { color: #ed9d13 } /* Literal.String.Backtick */ | |
.highlight .sc { color: #ed9d13 } /* Literal.String.Char */ | |
.highlight .sd { color: #ed9d13 } /* Literal.String.Doc */ | |
.highlight .s2 { color: #ed9d13 } /* Literal.String.Double */ | |
.highlight .se { color: #ed9d13 } /* Literal.String.Escape */ | |
.highlight .sh { color: #ed9d13 } /* Literal.String.Heredoc */ | |
.highlight .si { color: #ed9d13 } /* Literal.String.Interpol */ | |
.highlight .sx { color: #ffa500 } /* Literal.String.Other */ | |
.highlight .sr { color: #ed9d13 } /* Literal.String.Regex */ | |
.highlight .s1 { color: #ed9d13 } /* Literal.String.Single */ | |
.highlight .ss { color: #ed9d13 } /* Literal.String.Symbol */ | |
.highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */ | |
.highlight .vc { color: #40ffff } /* Name.Variable.Class */ | |
.highlight .vg { color: #40ffff } /* Name.Variable.Global */ | |
.highlight .vi { color: #40ffff } /* Name.Variable.Instance */ | |
.highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Hyde PHP Syntax Test</title> | |
<link rel="stylesheet" href="{{site.url}}/media/css/pygments.css" type="text/css" media="screen" charset="utf-8"> | |
</head> | |
<body> | |
{% syntax php %} | |
<? | |
class SimpleClass | |
{ | |
// property declaration | |
public $var = 'a default value'; | |
// method declaration | |
public function displayVar() { | |
echo $this->var; | |
} | |
} | |
{% endsyntax %} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The css file was generated using the command
pygmentize -f html -S native -a .highlight > pygments.css