发布于 2016-05-19 04:48:24 | 184 次阅读 | 评论: 0 | 来源: 网友投递
Highlight.js 语法高亮
highlight.js是一个用于在任何web页面上着色显示各种示例源代码语法的JS项目。
Highlight.js 9.4.0 发布了,该版本主要改进内容包括:
新语言支持:
PureBASIC by Tristano Ajmone
BNF by Oleg Efimov
Ada by Lars Schulna
新样式:
PureBASIC by Tristano Ajmone
改进:
We now highlight function declarations in Go.
Taisuke Fujimoto contributed very convoluted rules for raw and interpolated strings in C#.
Boone Severson updated Verilog to comply with IEEE 1800-2012 SystemVerilog.
Victor Zhou improved rules for comments and strings in PowerShell files.
Janis Voigtländer updated the definition of Elm to version 0.17 of the languages. Elm is now featured on the front page of https://highlightjs.org.
Special variable $this
is highlighted as a keyword in PHP.
usize
and isize
are now highlighted in Rust.
Fixed labels and directives in x86 assembler.
highlight.js是一个用于在任何web页面上着色显示各种示例源代码语法的JS项目。具有以下特色:
支持 92 种语言,49 种代码格式化风格。
自动检测语言种类
支持多语言混合的代码高亮
支持Node.js
支持使用任何HTML标记
兼容任意js框架