Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 59428

Highlight.js 9.4.0 发布,JavaScript 语法高亮库

$
0
0

Highlight.js 9.4.0 发布了,该版本主要改进内容包括:

新语言支持:

新样式:

改进:

  • 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框架


Viewing all articles
Browse latest Browse all 59428

Trending Articles