home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Make A New Prism Syntax Highlighting Langage Definition

This is what I did to make a starting point for the Neopolitan syntax highlighter for the example page.

April 2023
═══ § ═══

the content below here isn't working prolerly in the praser

components/prism-alfa.js

With contents like:

Code
Prism.languages['some-language'] = {
  'token-name': {
    pattern: /regex/
  },
};

Edit the components.json file in the root of the projct to add your language like:

Code
"some-language": {
  "title": "Some Language",
  "owner": "Your GitHub name"
}

If you're going to try to submit it, make sure it's sorted properly in the alphabetical section below the defaults

http://localhost:8080/download.html

═══ § ═══