Skip to content

Commit

Permalink
List supported Highlight.js languages in guide
Browse files Browse the repository at this point in the history
Generated using the technique described in
#1275 (comment).
  • Loading branch information
camelid committed Sep 29, 2020
1 parent b77942d commit 15b6e47
Showing 1 changed file with 55 additions and 4 deletions.
59 changes: 55 additions & 4 deletions guide/src/format/theme/syntax-highlighting.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,67 @@
# Syntax Highlighting

For syntax highlighting I use [Highlight.js](https://highlightjs.org) with a
For syntax highlighting we use [Highlight.js](https://highlightjs.org) with a
custom theme.

Automatic language detection has been turned off, so you will probably want to
specify the programming language you use like this
specify the programming language you use like this:

<pre><code class="language-markdown">```rust
~~~markdown
```rust
fn main() {
// Some code
}
```</code></pre>
```
~~~

## Supported languages

These languages are supported by default, but you can add more by supplying
your own `highlight.js` file:

- apache
- armasm
- bash
- c
- coffeescript
- cpp
- csharp
- css
- d
- diff
- go
- handlebars
- haskell
- http
- ini
- java
- javascript
- json
- julia
- kotlin
- less
- lua
- makefile
- markdown
- nginx
- objectivec
- perl
- php
- plaintext
- properties
- python
- r
- ruby
- rust
- scala
- scss
- shell
- sql
- swift
- typescript
- x86asm
- xml
- yaml

## Custom theme
Like the rest of the theme, the files used for syntax highlighting can be
Expand Down

0 comments on commit 15b6e47

Please sign in to comment.