colorize

API Reference

colorize

A Syntax highlighting library

COLORIZE

Homepage: <a href="http://github.com/redline6561/colorize">Github</a>
  • Variable *COLORING-CSS*
    ".symbol { color : #770055; background-color : transparent; border: 0px; margin: 0px;}
    a.symbol:link { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
    a.symbol:active { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
    a.symbol:visited { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
    a.symbol:hover { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
    .special { color : #ff5000; background-color : inherit; }
    .keyword { color : #770000; background-color : inherit; }
    .comment { color : #007777; background-color : inherit; }
    .string { color : #777777; background-color : inherit; }
    .atom { color : #314f4f; background-color : inherit; }
    .macro { color : #ff5000; background-color : inherit; }
    .variable { color : #36648b; background-color : inherit; }
    .function { color : #8b4789; background-color : inherit; }
    .attribute { color : #ff5000; background-color : inherit; }
    .character { color : #0055aa; background-color : inherit; }
    .syntaxerror { color : #ff0000; background-color : inherit; }
    .diff-deleted { color : #5f2121; background-color : inherit; }
    .diff-added { color : #215f21; background-color : inherit; }
    span.paren1 { background-color : inherit; -webkit-transition: background-color 0.2s linear; }
    span.paren1:hover { color : inherit; background-color : #baffff; }
    span.paren2 { background-color : inherit; -webkit-transition: background-color 0.2s linear; }
    span.paren2:hover { color : inherit; background-color : #ffcaca; }
    span.paren3 { background-color : inherit; -webkit-transition: background-color 0.2s linear; }
    span.paren3:hover { color : inherit; background-color : #ffffba; }
    span.paren4 { background-color : inherit; -webkit-transition: background-color 0.2s linear; }
    span.paren4:hover { color : inherit; background-color : #cacaff; }
    span.paren5 { background-color : inherit; -webkit-transition: background-color 0.2s linear; }
    span.paren5:hover { color : inherit; background-color : #caffca; }
    span.paren6 { background-color : inherit; -webkit-transition: background-color 0.2s linear; }
    span.paren6:hover { color : inherit; background-color : #ffbaff; }
    "
  • Variable *CSS-BACKGROUND-CLASS*
    ""
  • Function MAKE-BACKGROUND-CSS (color &key (class *css-background-class*) (extra nil))
  • Variable *VERSION-TOKEN*
    (gensym)
  • Function FIND-COLORING-TYPE (type)
  • Function AUTODETECT-COLORING-TYPE (name)
  • Function COLORING-TYPES
    Return the supported coloring types as a list of dotted pairs of the form, (:keyword . "coloring-type").
  • Function (setf FIND-COLORING-TYPE) (new-value type)
  • Function SCAN-STRING (coloring-type string)
  • Function FORMAT-SCAN (coloring-type scan)
  • Function HTML-COLORIZATION (coloring-type string &optional (encoder 'encode-for-pre))
    Given a COLORING-TYPE and STRING, return the colorized HTML.
  • Function COLORIZE-FILE-TO-STREAM (coloring-type input-file-name stream &key (wrap t) (css-background "default") (encoder 'encode-for-pre))
    Given a COLORING-TYPE, INPUT-FILE-NAME, and a STREAM to write to, output the colorized code to the given STREAM. If WRAP is nil, write only the HTML for the code snippet. To wrap in a <tt> element rather than <pre>, pass 'encode-for-tt as the ENCODER.
  • Function COLORIZE-FILE (coloring-type input-file-name &optional output-file-name)
    Given a COLORING-TYPE (keyword) and an INPUT-FILE-NAME, write colorized code to INPUT-FILE-NAME.html or OUTPUT-FILE-NAME, if provided.
  • Variable *VERSION-TOKEN*
    (gensym)

ABBREV

  • Function ABBREV (term &key wrap)

CLHS-LOOKUP

  • Function POPULATE-TABLE
  • Function SPEC-LOOKUP (term &key (type :all))
  • Function SYMBOL-LOOKUP (term)

R5RS-LOOKUP

  • Function POPULATE-TABLE
  • Function SYMBOL-LOOKUP (symbol)

ELISP-LOOKUP

  • Function POPULATE-TABLE
  • Function SYMBOL-LOOKUP (symbol)