Skip to content

savonet/highlightjs-liquidsoap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

highlightjs-liquidsoap

Syntax highlighting for Liquidsoap in highlight.js.

Usage

Browser

<script src="path/to/highlight.min.js"></script>
<script src="path/to/liquidsoap.min.js"></script>
<script>hljs.highlightAll();</script>

Node.js

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

hljs.registerLanguage('liquidsoap', liquidsoap);

ES Modules

import hljs from 'highlight.js';
import liquidsoap from 'highlightjs-liquidsoap';

hljs.registerLanguage('liquidsoap', liquidsoap);

Supported Features

  • Keywords: def, let, if, then, else, elsif, end, begin, while, do, for, to, fun, try, catch, finally, open
  • Literals: true, false, null
  • Comments: single-line (#) and nested multiline (#< ... #>)
  • Strings: double and single quoted with interpolation (#{...})
  • Numbers: decimal, hexadecimal (0x), octal (0o), binary (0b), floats, scientific notation
  • Encoders: %mp3, %opus, %ffmpeg, etc.
  • Preprocessor: %ifdef, %ifndef, %ifencoder, %ifnencoder, %ifversion, %include
  • Decorators: @json.parse, @yaml.parse, @xml.parse, @sqlite.row, @sqlite.query
  • Regular expressions: r/pattern/flags
  • Time predicates: 1h30m, 8h-18h
  • Labeled arguments: ~label
  • Operators: ::, :=, ??, ?., ->

License

GPL-2.0-or-later

About

Support for liquidsoap in highlight.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors