Download Padre

Syntax Highlighting Table

Syntax Highlighting

Perldoc colours, used as reference, got to have a reference. Similar to Pygments.

perldoc info extracted from perldoc css. (enc. below)

  • css-20100830.css
  • /trac/pygments/perldoc.css

I am unclear as to what section in default apply to Padre syntax (help)

padre extracted from: Padre/trunk/Padre/share/styles/default.yml

I have made this assumption!

  • Scintilla == (application/x-perl)
  • PPI == (text/x-perlxs)
WxWidgets, are all of these component colours used, or just defined such as wxSTC_C_COMMENTLINE:

Comparison Table

                                                |  perldoc       | Scintilla (application/x-perl)  |   PPI (text/x-perlxs)
description      Perl                           |  css   hex#    | wxWigets             hex#       |   wxWigets             hex#
-------------------------------------------------------------------------------------------------------------------------------------
Comments         #Comment                       |  .c   #228B22  | wxSTC_C_COMMENTLINE: #007f00    | wxSTC_C_COMMENT:
                                                |                |                                 | wxSTC_C_COMMENTLINE:    #007f00
                                                |                |                                 | wxSTC_C_COMMENTDOC:
-------------------------------------------------------------------------------------------------------------------------------------
Comma            ,                              | .cm   #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
Colon            :                              | .co   #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
here-doc-target  here-doc-target                | .h    #CD5555  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
here-doc-text    here-doc-text                  | .hh   #CD5555  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
identifier       struct $variable @array %hash  | .i    #00688B  | wxSTC_PL_IDENTIFIER: #0000ff    | wxSTC_PL_IDENTIFIER:    #0000ff
-------------------------------------------------------------------------------------------------------------------------------------
label            LABEL:                         | .j    #CD5555  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
keyword          use my sub for while else      | .k    #8B008B  | wxSTC_               #000000    | wxSTC_                  #000000
                 print return if                |                |                                 |
-------------------------------------------------------------------------------------------------------------------------------------
subroutine       sub on_event {}                | .m    #FF0000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
numeric          101                            | .n    #B452CD  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
parenthesize     () [] {}                       | .p    #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
pod-text         =head1 =cut                    | .pd   #228B22  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
punctuation                                     | .pu   #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
quote            /pattern/ 'single' "double"    | .q    #CD5555  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
structure                                       | .s    #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
semicolon        ;                              | .sc   #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
v-string (version)       deprecated             | .v    #B452CD  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------
bareword                                        | .w    #000000  | wxSTC_               #000000    | wxSTC_                  #000000
-------------------------------------------------------------------------------------------------------------------------------------

Reference

Perldoc (css)

/* @group Syntax highlighting */

.c  { color: #228B22;} /* comment */ \\
.cm { color: #000000;} /* comma */ \\
.co { color: #000000;} /* colon */ \\
.h  { color: #CD5555; font-weight:bold;} /* here-doc-target */ \\
.hh { color: #CD5555; font-style:italic;} /* here-doc-text */ \\
.i  { color: #00688B;} /* identifier */ \\
.j  { color: #CD5555; font-weight:bold;} /* label */ \\
.k  { color: #8B008B; font-weight:bold;} /* keyword */ \\
.m  { color: #FF0000; font-weight:bold;} /* subroutine */ \\
.n  { color: #B452CD;} /* numeric */ \\
.p  { color: #000000;} /* paren */ \\
.pd { color: #228B22; font-style:italic;} /* pod-text */ \\
.pu { color: #000000;} /* punctuation */ \\
.q  { color: #CD5555;} /* quote */ \\
.s  { color: #000000;} /* structure */ \\
.sc { color: #000000;} /* semicolon */ \\
.v  { color: #B452CD;} /* v-string */ \\
.w  { color: #000000;} /* bareword */ \\

Pygments (css)

div.code pre .hll { background-color: #ffffcc } \\
div.code pre  { background: #eeeedd; } \\
div.code pre .c { color: #228B22 } /* Comment */ \\
div.code pre .err { color: #a61717; background-color: #e3d2d2 } /* Error */ \\
div.code pre .k { color: #8B008B; font-weight: bold } /* Keyword */ \\
div.code pre .cm { color: #228B22 } /* Comment.Multiline */ \\
div.code pre .cp { color: #1e889b } /* Comment.Preproc */ \\
div.code pre .c1 { color: #228B22 } /* Comment.Single */ \\
div.code pre .cs { color: #8B008B; font-weight: bold } /* Comment.Special */ \\
div.code pre .gd { color: #aa0000 } /* Generic.Deleted */ \\
div.code pre .ge { font-style: italic } /* Generic.Emph */ \\
div.code pre .gr { color: #aa0000 } /* Generic.Error */ \\
div.code pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */ \\
div.code pre .gi { color: #00aa00 } /* Generic.Inserted */ \\
div.code pre .go { color: #888888 } /* Generic.Output */ \\
div.code pre .gp { color: #555555 } /* Generic.Prompt */ \\
div.code pre .gs { font-weight: bold } /* Generic.Strong */ \\
div.code pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ \\
div.code pre .gt { color: #aa0000 } /* Generic.Traceback */ \\
div.code pre .kc { color: #8B008B; font-weight: bold } /* Keyword.Constant */ \\
div.code pre .kd { color: #8B008B; font-weight: bold } /* Keyword.Declaration */ \\
div.code pre .kn { color: #8B008B; font-weight: bold } /* Keyword.Namespace */ \\
div.code pre .kp { color: #8B008B; font-weight: bold } /* Keyword.Pseudo */ \\
div.code pre .kr { color: #8B008B; font-weight: bold } /* Keyword.Reserved */ \\
div.code pre .kt { color: #a7a7a7; font-weight: bold } /* Keyword.Type */ \\
div.code pre .m { color: #B452CD } /* Literal.Number */ \\
div.code pre .s { color: #CD5555 } /* Literal.String */ \\
div.code pre .na { color: #658b00 } /* Name.Attribute */ \\
div.code pre .nb { color: #658b00 } /* Name.Builtin */ \\
div.code pre .nc { color: #008b45; font-weight: bold } /* Name.Class */ \\
div.code pre .no { color: #00688B } /* Name.Constant */ \\
div.code pre .nd { color: #707a7c } /* Name.Decorator */ \\
div.code pre .ne { color: #008b45; font-weight: bold } /* Name.Exception */ \\
div.code pre .nf { color: #008b45 } /* Name.Function */ \\
div.code pre .nn { color: #008b45; text-decoration: underline } /* Name.Namespace */ \\
div.code pre .nt { color: #8B008B; font-weight: bold } /* Name.Tag */ \\
div.code pre .nv { color: #00688B } /* Name.Variable */ \\
div.code pre .ow { color: #8B008B } /* Operator.Word */ \\
div.code pre .w { color: #bbbbbb } /* Text.Whitespace */ \\
div.code pre .mf { color: #B452CD } /* Literal.Number.Float */ \\
div.code pre .mh { color: #B452CD } /* Literal.Number.Hex */ \\
div.code pre .mi { color: #B452CD } /* Literal.Number.Integer */ \\
div.code pre .mo { color: #B452CD } /* Literal.Number.Oct */ \\
div.code pre .sb { color: #CD5555 } /* Literal.String.Backtick */ \\
div.code pre .sc { color: #CD5555 } /* Literal.String.Char */ \\
div.code pre .sd { color: #CD5555 } /* Literal.String.Doc */ \\
div.code pre .s2 { color: #CD5555 } /* Literal.String.Double */ \\
div.code pre .se { color: #CD5555 } /* Literal.String.Escape */ \\
div.code pre .sh { color: #1c7e71; font-style: italic } /* Literal.String.Heredoc */ \\
div.code pre .si { color: #CD5555 } /* Literal.String.Interpol */ \\
div.code pre .sx { color: #cb6c20 } /* Literal.String.Other */ \\
div.code pre .sr { color: #1c7e71 } /* Literal.String.Regex */ \\
div.code pre .s1 { color: #CD5555 } /* Literal.String.Single */ \\
div.code pre .ss { color: #CD5555 } /* Literal.String.Symbol */ \\
div.code pre .bp { color: #658b00 } /* Name.Builtin.Pseudo */ \\
div.code pre .vc { color: #00688B } /* Name.Variable.Class */ \\
div.code pre .vg { color: #00688B } /* Name.Variable.Global */ \\
div.code pre .vi { color: #00688B } /* Name.Variable.Instance */ \\
div.code pre .il { color: #B452CD } /* Literal.Number.Integer.Long */ \\

table.code td .hll { background-color: #ffffcc }
table.code td  { background: #eeeedd; }
table.code td .c { color: #228B22 } /* Comment */ \\
table.code td .err { color: #a61717; background-color: #e3d2d2 } /* Error */ \\
table.code td .k { color: #8B008B; font-weight: bold } /* Keyword */ \\
table.code td .cm { color: #228B22 } /* Comment.Multiline */ \\
table.code td .cp { color: #1e889b } /* Comment.Preproc */ \\
table.code td .c1 { color: #228B22 } /* Comment.Single */ \\
table.code td .cs { color: #8B008B; font-weight: bold } /* Comment.Special */ \\
table.code td .gd { color: #aa0000 } /* Generic.Deleted */ \\
table.code td .ge { font-style: italic } /* Generic.Emph */ \\
table.code td .gr { color: #aa0000 } /* Generic.Error */ \\
table.code td .gh { color: #000080; font-weight: bold } /* Generic.Heading */ \\
table.code td .gi { color: #00aa00 } /* Generic.Inserted */ \\
table.code td .go { color: #888888 } /* Generic.Output */ \\
table.code td .gp { color: #555555 } /* Generic.Prompt */ \\
table.code td .gs { font-weight: bold } /* Generic.Strong */ \\
table.code td .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ \\
table.code td .gt { color: #aa0000 } /* Generic.Traceback */ \\
table.code td .kc { color: #8B008B; font-weight: bold } /* Keyword.Constant */ \\
table.code td .kd { color: #8B008B; font-weight: bold } /* Keyword.Declaration */ \\
table.code td .kn { color: #8B008B; font-weight: bold } /* Keyword.Namespace */ \\
table.code td .kp { color: #8B008B; font-weight: bold } /* Keyword.Pseudo */ \\
table.code td .kr { color: #8B008B; font-weight: bold } /* Keyword.Reserved */ \\
table.code td .kt { color: #a7a7a7; font-weight: bold } /* Keyword.Type */ \\
table.code td .m { color: #B452CD } /* Literal.Number */ \\
table.code td .s { color: #CD5555 } /* Literal.String */ \\
table.code td .na { color: #658b00 } /* Name.Attribute */ \\
table.code td .nb { color: #658b00 } /* Name.Builtin */ \\
table.code td .nc { color: #008b45; font-weight: bold } /* Name.Class */ \\
table.code td .no { color: #00688B } /* Name.Constant */ \\
table.code td .nd { color: #707a7c } /* Name.Decorator */ \\
table.code td .ne { color: #008b45; font-weight: bold } /* Name.Exception */ \\
table.code td .nf { color: #008b45 } /* Name.Function */ \\
table.code td .nn { color: #008b45; text-decoration: underline } /* Name.Namespace */ \\
table.code td .nt { color: #8B008B; font-weight: bold } /* Name.Tag */ \\
table.code td .nv { color: #00688B } /* Name.Variable */ \\
table.code td .ow { color: #8B008B } /* Operator.Word */ \\
table.code td .w { color: #bbbbbb } /* Text.Whitespace */ \\
table.code td .mf { color: #B452CD } /* Literal.Number.Float */ \\
table.code td .mh { color: #B452CD } /* Literal.Number.Hex */ \\
table.code td .mi { color: #B452CD } /* Literal.Number.Integer */ \\
table.code td .mo { color: #B452CD } /* Literal.Number.Oct */ \\
table.code td .sb { color: #CD5555 } /* Literal.String.Backtick */ \\
table.code td .sc { color: #CD5555 } /* Literal.String.Char */ \\
table.code td .sd { color: #CD5555 } /* Literal.String.Doc */ \\
table.code td .s2 { color: #CD5555 } /* Literal.String.Double */ \\
table.code td .se { color: #CD5555 } /* Literal.String.Escape */ \\
table.code td .sh { color: #1c7e71; font-style: italic } /* Literal.String.Heredoc */ \\
table.code td .si { color: #CD5555 } /* Literal.String.Interpol */ \\
table.code td .sx { color: #cb6c20 } /* Literal.String.Other */ \\
table.code td .sr { color: #1c7e71 } /* Literal.String.Regex */ \\
table.code td .s1 { color: #CD5555 } /* Literal.String.Single */ \\
table.code td .ss { color: #CD5555 } /* Literal.String.Symbol */ \\
table.code td .bp { color: #658b00 } /* Name.Builtin.Pseudo */ \\
table.code td .vc { color: #00688B } /* Name.Variable.Class */ \\
table.code td .vg { color: #00688B } /* Name.Variable.Global */ \\
table.code td .vi { color: #00688B } /* Name.Variable.Instance */ \\
table.code td .il { color: #B452CD } /* Literal.Number.Integer.Long */ \\