--- 
name: Pastels on Dark
line: 
  begin: ""
  end: "}}\\\\"
tags: 
- begin: "{\\color[HTML]{555555}"
  end: "}"
  selector: comment
- begin: "{\\color[HTML]{555555}"
  end: "}"
  selector: comment.block
- begin: "{\\color[HTML]{AD9361}"
  end: "}"
  selector: string
- begin: "{\\color[HTML]{CCCCCC}"
  end: "}"
  selector: constant.numeric
- begin: "{\\color[HTML]{A1A1FF}"
  end: "}"
  selector: keyword
- begin: "{\\color[HTML]{2F006E}"
  end: "}"
  selector: meta.preprocessor
- begin: "{\\textbf{"
  end: "}}"
  selector: keyword.control.import
- begin: "{\\color[HTML]{A1A1FF}"
  end: "}"
  selector: support.function
- begin: "{\\color[HTML]{0000FF}"
  end: "}"
  selector: declaration.function function-result
- begin: "{\\textbf{"
  end: "}}"
  selector: declaration.function function-name
- begin: "{\\textbf{"
  end: "}}"
  selector: declaration.function argument-name
- begin: "{\\color[HTML]{0000FF}"
  end: "}"
  selector: declaration.function function-arg-type
- begin: "{\\textit{"
  end: "}}"
  selector: declaration.function function-argument
- begin: "{\\underline{"
  end: "}}"
  selector: declaration.class class-name
- begin: "{\\textit{"
  end: "}}"
  selector: declaration.class class-inheritance
- begin: \setlength{\fboxsep}{0ex}\colorbox[HTML]{FF0000}{\rule[-0.5ex]{0pt}{2.0ex}\color[HTML]{FFF9F9}\textbf{
  end: "}}"
  selector: invalid
- begin: \setlength{\fboxsep}{0ex}\colorbox[HTML]{FFD0D0}{\rule[-0.5ex]{0pt}{2.0ex}
  end: "}"
  selector: invalid.deprecated.trailing-whitespace
- begin: "{\\textit{"
  end: "}}"
  selector: declaration.section section-name
- begin: "{\\color[HTML]{C10006}"
  end: "}"
  selector: string.interpolation
- begin: "{\\color[HTML]{666666}"
  end: "}"
  selector: string.regexp
- begin: "{\\color[HTML]{C1C144}"
  end: "}"
  selector: variable
- begin: "{\\color[HTML]{6782D3}"
  end: "}"
  selector: constant
- begin: "{\\color[HTML]{AFA472}"
  end: "}"
  selector: constant.character
- begin: "{\\color[HTML]{DE8E30}\\textbf{"
  end: "}}"
  selector: constant.language
- begin: "{\\underline{"
  end: "}}"
  selector: embedded
- begin: "{\\color[HTML]{858EF4}"
  end: "}"
  selector: keyword.markup.element-name
- begin: "{\\color[HTML]{9B456F}"
  end: "}"
  selector: keyword.markup.attribute-name
- begin: "{\\color[HTML]{9B456F}"
  end: "}"
  selector: meta.attribute-with-value
- begin: "{\\color[HTML]{C82255}\\textbf{"
  end: "}}"
  selector: keyword.exception
- begin: "{\\color[HTML]{47B8D6}"
  end: "}"
  selector: keyword.operator
- begin: "{\\color[HTML]{6969FA}\\textbf{"
  end: "}}"
  selector: keyword.control
- begin: "{\\color[HTML]{68685B}"
  end: "}"
  selector: meta.tag.preprocessor.xml
- begin: "{\\color[HTML]{888888}"
  end: "}"
  selector: meta.tag.sgml.doctype
- begin: "{\\textit{"
  end: "}}"
  selector: string.quoted.docinfo.doctype.DTD
- begin: "{\\color[HTML]{909090}"
  end: "}"
  selector: comment.other.server-side-include.xhtml, comment.other.server-side-include.html
- begin: "{\\color[HTML]{858EF4}"
  end: "}"
  selector: text.html declaration.tag, text.html meta.tag, text.html entity.name.tag.xhtml
- begin: "{\\color[HTML]{9B456F}"
  end: "}"
  selector: keyword.markup.attribute-name
- begin: "{\\color[HTML]{777777}"
  end: "}"
  selector: keyword.other.phpdoc.php
- begin: "{\\color[HTML]{C82255}"
  end: "}"
  selector: keyword.other.include.php
- begin: "{\\color[HTML]{DE8E20}\\textbf{"
  end: "}}"
  selector: support.constant.core.php
- begin: "{\\color[HTML]{DE8E10}\\textbf{"
  end: "}}"
  selector: support.constant.std.php
- begin: "{\\color[HTML]{B72E1D}"
  end: "}"
  selector: variable.other.global.php
- begin: "{\\color[HTML]{00FF00}"
  end: "}"
  selector: variable.other.global.safer.php
- begin: "{\\color[HTML]{BFA36D}"
  end: "}"
  selector: string.quoted.single.php
- begin: "{\\color[HTML]{6969FA}"
  end: "}"
  selector: keyword.storage.php
- begin: "{\\color[HTML]{AD9361}"
  end: "}"
  selector: string.quoted.double.php
- begin: "{\\color[HTML]{EC9E00}"
  end: "}"
  selector: entity.other.attribute-name.id.css
- begin: "{\\color[HTML]{B8CD06}\\textbf{"
  end: "}}"
  selector: entity.name.tag.css
- begin: "{\\color[HTML]{EDCA06}"
  end: "}"
  selector: entity.other.attribute-name.class.css
- begin: "{\\color[HTML]{2E759C}"
  end: "}"
  selector: entity.other.attribute-name.pseudo-class.css
- begin: \setlength{\fboxsep}{0ex}\colorbox[HTML]{FF0000}{\rule[-0.5ex]{0pt}{2.0ex}\color[HTML]{FFFFFF}
  end: "}"
  selector: invalid.bad-comma.css
- begin: "{\\color[HTML]{9B2E4D}"
  end: "}"
  selector: support.constant.property-value.css
- begin: "{\\color[HTML]{E1C96B}"
  end: "}"
  selector: support.type.property-name.css
- begin: "{\\color[HTML]{666633}"
  end: "}"
  selector: constant.other.rgb-value.css
- begin: "{\\color[HTML]{666633}"
  end: "}"
  selector: support.constant.font-name.css
- begin: "{\\color[HTML]{7171F3}"
  end: "}"
  selector: support.constant.tm-language-def, support.constant.name.tm-language-def
- begin: "{\\color[HTML]{6969FA}"
  end: "}"
  selector: keyword.other.unit.css
listing: 
  begin: |
    \newcolumntype{C}{>{\color[HTML]{DADADA}\columncolor[HTML]{211E1E}}l}
    \newcolumntype{N}{>{\color[HTML]{FFFFFF}\columncolor[HTML]{73597E}}l}
    \begin{longtable}{NC}

  end: |
    \end{longtable}

document: 
  begin: |
    \documentclass[a4paper,landscape]{article}
    \usepackage{xcolor}
    \usepackage{colortbl}
    \usepackage{longtable}
    \usepackage[left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
    \usepackage[T1]{fontenc}
    \usepackage[scaled]{beramono}
    \begin{document}

  end: |
    \end{document}

filter: "@escaped.gsub(/(\\$)/, '\\\\\\\\\\1').gsub(/\\\\(?!\\$)/, '$\\\\\\\\backslash$').gsub(/(_|\\{|\\}|&|\\#|%)/, '\\\\\\\\\\1').gsub(/~/, '\\\\textasciitilde ').gsub(/ /,'\\\\hspace{1ex}').gsub(/\\t| /,'\\\\hspace{3ex}').gsub(/\\\"/, \"''\").gsub(/(\\^)/,'\\\\\\\\\\1{}')"
line-numbers: 
  begin: \texttt{
  end: "}&\\mbox{\\texttt{"
