Rouge가 지원하는 언어 목록
상위 문서: {{ item.title }} -
github jekyll
Github Jekyll의 syntax highlight용 언어 키워드 모음
Github Jekyll의 코드 하이라이팅
- 다음과 같이 마크다운 파일을 작성하면 Jekyll이 해당 언어의 신택스로 하이라이팅을 해준다.
```언어이름
해당 언어로 작성한 코드
```
- 이름이 심플한 언어라면 괜찮은데, 가끔 언어 이름을 어떻게 지정해야 할 지 애매한 경우가 있다.
- 가령 VimL은 Vim Script라고도 부르므로
viml
이라 적을지vimscript
로 적을지 애매하다. - 물론 테스트해보면 되지만 매번 테스트하는 것도 귀찮은 일이다.
- 가령 VimL은 Vim Script라고도 부르므로
- 어딜 봐야 알 수 있나 하다가 Rouge wiki를 보면 된다는 것을 알게 되었다.
- Github Jekyll의 코드 블록 신택스 하이라이팅 도구는 Rouge가 기본값이기 때문.
자세한 내용은 다음 링크 참고.
언어 목록
Jekyll에서 Rouge를 사용하고 있다면 코드 블록에서 언어를 지정할 때 아래의 목록을 참고하면 된다.
예를 들어 Clojure의 알리아스는 clojure
, clj
, cljs
이므로 셋 중 하나인 clj
를 지정해주면
```clj
(println "Hello, World")
```
다음과 같이 Clojure 코드로 신택스 하이라이팅이 된다.
(println "Hello, World")
다음 목록은 백업 겸, Rouge wiki에서 복사해 붙여넣은 것이다.
(Rouge wiki가 언제든지 변경될 수 있으므로 이 목록만 참고하지 않도록 한다.)
- actionscript, as, as3
- apache
- apiblueprint, apib
- applescript
- biml
- c
- ceylon
- cfscript, cfc
- clojure, clj, cljs
- cmake
- coffeescript, coffee, coffee-script
- common_lisp, cl, common-lisp, elisp, emacs-lisp
- conf, config, configuration
- coq
- cpp, c++
- csharp, c#, cs
- css
- d, dlang
- dart
- diff, patch, udiff
- dot
- eiffel
- elixir, exs
- erb, eruby, rhtml
- erlang, erl
- factor
- fortran
- gherkin, cucumber, behat
- glsl
- go, golang
- gradle
- groovy
- haml, HAML
- handlebars, hbs, mustache
- haskell, hs
- html
- http
- ini
- io
- java
- javascript, js
- jinja, django
- json
- json-doc
- jsonnet
- julia, jl
- kotlin
- liquid
- literate_coffeescript, litcoffee
- literate_haskell, lithaskell, lhaskell, lhs
- llvm
- lua
- make, makefile, mf, gnumake, bsdmake
- markdown, md, mkd
- matlab, m
- mosel
- moonscript, moon
- nasm
- nginx
- nim, nimrod
- objective_c, objc
- ocaml
- pascal
- perl, pl
- php, php3, php4, php5
- plaintext, text
- powershell, posh
- praat
- prolog, prolog
- properties
- protouf, proto
- puppet, pp
- python, py
- qml, qml
- r, R, s, S
- racket
- ruby, rb
- rust, rs
- sass
- scala, scala
- scheme
- scss
- sed
- shell, bash, zsh, ksh, sh
- shell_session, terminal, console
- slim
- smalltalk, st, squeak
- smarty, smarty
- sml, ml
- sql
- swift
- tap, tap
- tcl
- tex, TeX, LaTeX, latex
- toml
- tulip, tlp
- twig
- typescript, ts
- vb, visualbasic
- verilog
- viml, vim, vimscript, ex
- xml
- yaml, yml