Changelog
phil/highlightPas encore traduite
Cette page n’est pas encore traduite en français ; elle est montrée en anglais.
All notable changes to phil/highlight will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
NEXT - YYYY-MM-DD
Added
TokenandTokenType: a piece of the source and what it is, 26 types whose HTML class ishl-and their value.Language, the interface of a tokenizer that never throws and never loses a byte.Code, the tokenizer of a programming language described by aSyntax— words, comments,Quotes, prefixes, sigils, annotations, symbols, macros, preprocessor lines, regular expressions —, andDefinitions, the syntaxes of PHP, JavaScript, TypeScript, JSON, Python, Ruby, Go, Rust, Java, C, C++, C#, SQL, shell and Twig expressions.Markup(HTML with its scripts and styles, XML),StyleSheet(CSS, SCSS),Yaml,Ini,Dockerfile,Diff,Markdown,TwigandPhp(code and markup mixed).HtmlFormatter, the tokens as escaped HTML in<span class="hl-…">, at once or line by line withformatLines().LineOptions,LineRangesandLineMark: a block line by line, each line in<span class="hl-line">, numbered from a first number, the lines of ranges such as1,3-5highlighted, and the[!code ++],[!code --]and[!code highlight]annotations of comments, with a number of lines after:, read and taken out.Highlighter: every shipped language by name and alias in any case, languages added or replaced, tokens, HTML, line by line givenLineOptions, andhighlight()in the shape a code renderer takes.HighlightException, implemented byUnknownLanguage,InvalidLanguageandInvalidLineRanges.- The themes
themes/light.css,themes/dark.cssandthemes/auto.css, marked lines told by a tint, a bar and a sign. - The fuzz targets
line-rangesandline-annotations. - The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.