Skip to content

commenthol/highlightjs-modelica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modelica language support for highlight.js

Adds syntax highlighting to highlight.js for Modelica files.

The grammar is from the Modelica grammar for Sublime Text by Boris Chumichev.

Usage

const hljs = require('highlight.js')
const modelica = require('highlightjs-modelica')

hljs.registerLanguage('modelica', modelica)

const code = `
package Components "Contains different components"
extends Modelica.Icons.Library2;
  import SI= Modelica.SIunits;
// ...
`

const value = hljs.highlight('modelica', code, true).value

License

Copyright (c) 2019- commenthol (MIT License)

See LICENSE for more info.

About

Modelica Language syntax highlighting plugin for highlight.js

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors