Rabu, 16 Oktober 2024

Syntax highlighting In AsciiDoctor Code Block

Syntax highlighting is a technique of colorizing the code to make it easier to read by emphasizing types, keywords, and other language constructs. Syntax highlighting of source blocks is enabled using the source-highlighter attribute in AsciiDoctor code block.

Some of common syntax highlighting supported language:
IT language:syntax highlighting name of language
asciidoctor:asciidoc
c#/c sharp:cs
c++/c plus plus:cpp
cascading style sheet:css
java:java
javascript:javascript
json:json
markdown:markdown
Objective C:objectivec
perl:perl
plaintext:none
php:php
python:python
ruby:ruby
sql/structured query language:sql
xml/extensible markup language:xml


See the complete (syntax highlighting supported language/syntax highlighting name-of-language ) list in :
https://docs.antora.org/
https://github.com/highlightjs/highlight.js



Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts