• Show log

    Commit

  • Hash : 1b75da90
    Author : Michael Schmidt
    Date : 2018-12-01T18:46:55

    Improved HTTP content highlighting (#1598) Extends the content highlighting capabilities of HTTP. 1. Add support for `application/javascript` and `text/css` content types. 2. Change the languages associated with certain types: 1. `application/json` now uses `json` with `javascript` as a backup instead of just `javascript`. 2. All XML types now use `Prism.languages.xml` instead of `markup`. 3. The HTML type now uses `html` instead of `markup`. 3. Add support for highlighting based on [suffixes](https://en.wikipedia.org/wiki/Media_type#Suffix) for XML and JSON. E.g. `image/svg+xml`, `application/xhtml+xml`, `application/atom+xml` will use `xml` and `application/calendar+json` will use `json`. 4. Stylistic changes: 1. Fix indentation. 2. Use single quotes for token names.

  • Properties

  • Git HTTP https://git.kmx.io/kmx.io/prism.js.git
    Git SSH git@git.kmx.io:kmx.io/prism.js.git
    Public access ? public
    Description

    Lightweight, robust, elegant syntax highlighting.

    https://github.com/PrismJS/prism/

    Users
    thodg
    Tags