• Stars
    star
    199
  • Rank 196,105 (Top 4 %)
  • Language
  • Created about 10 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Markdown supported languages for syntax highlighting

For markdown texts, we need to specify the languages for corresponding syntax highlighting.

Following is an example for highlighting c++ codes in markdown texts:

```cpp
bool getBit(int num, int i) {
    return ((num & (1<<i)) != 0);
}
```

Which becomes:

bool getBit(int num, int i) {
	return ((num & (1<<i)) != 0);
}

Note: The programming languages supported by the markdown depends on the markdown editor you use. The editor need to detect the language and do the syntax highlight.

Here's a full list of supported languages:

  • Cucumber ('*.feature')

  • abap ('*.abap')

  • ada ('.adb', '.ads', '*.ada')

  • ahk ('.ahk', '.ahkl')

  • apacheconf ('.htaccess', 'apache.conf', 'apache2.conf')

  • applescript ('*.applescript')

  • as ('*.as')

  • as3 ('*.as')

  • asy ('*.asy')

  • bash ('.sh', '.ksh', '.bash', '.ebuild', '*.eclass')

  • bat ('.bat', '.cmd')

  • befunge ('*.befunge')

  • blitzmax ('*.bmx')

  • boo ('*.boo')

  • brainfuck ('.bf', '.b')

  • c ('.c', '.h')

  • cfm ('.cfm', '.cfml', '*.cfc')

  • cheetah ('.tmpl', '.spt')

  • cl ('.cl', '.lisp', '*.el')

  • clojure ('.clj', '.cljs')

  • cmake ('*.cmake', 'CMakeLists.txt')

  • coffeescript ('*.coffee')

  • console ('*.sh-session')

  • control ('control')

  • cpp ('.cpp', '.hpp', '.c++', '.h++', '.cc', '.hh', '.cxx', '.hxx', '*.pde')

  • csharp ('*.cs')

  • css ('*.css')

  • cython ('.pyx', '.pxd', '*.pxi')

  • d ('.d', '.di')

  • delphi ('*.pas')

  • diff ('.diff', '.patch')

  • dpatch ('.dpatch', '.darcspatch')

  • duel ('.duel', '.jbst')

  • dylan ('.dylan', '.dyl')

  • erb ('*.erb')

  • erl ('*.erl-sh')

  • erlang ('.erl', '.hrl')

  • evoque ('*.evoque')

  • factor ('*.factor')

  • felix ('.flx', '.flxh')

  • fortran ('.f', '.f90')

  • gas ('.s', '.S')

  • genshi ('*.kid')

  • glsl ('.vert', '.frag', '*.geo')

  • gnuplot ('.plot', '.plt')

  • go ('*.go')

  • groff ('.(1234567)', '.man')

  • haml ('*.haml')

  • haskell ('*.hs')

  • html ('.html', '.htm', '.xhtml', '.xslt')

  • hx ('*.hx')

  • hybris ('.hy', '.hyb')

  • ini ('.ini', '.cfg')

  • io ('*.io')

  • ioke ('*.ik')

  • irc ('*.weechatlog')

  • jade ('*.jade')

  • java ('*.java')

  • js ('*.js')

  • jsp ('*.jsp')

  • lhs ('*.lhs')

  • llvm ('*.ll')

  • logtalk ('*.lgt')

  • lua ('.lua', '.wlua')

  • make ('.mak', 'Makefile', 'makefile', 'Makefile.', 'GNUmakefile')

  • mako ('*.mao')

  • maql ('*.maql')

  • mason ('.mhtml', '.mc', '*.mi', 'autohandler', 'dhandler')

  • markdown ('*.md')

  • modelica ('*.mo')

  • modula2 ('.def', '.mod')

  • moocode ('*.moo')

  • mupad ('*.mu')

  • mxml ('*.mxml')

  • myghty ('*.myt', 'autodelegate')

  • nasm ('.asm', '.ASM')

  • newspeak ('*.ns2')

  • objdump ('*.objdump')

  • objectivec ('*.m')

  • objectivej ('*.j')

  • ocaml ('.ml', '.mli', '.mll', '.mly')

  • ooc ('*.ooc')

  • perl ('.pl', '.pm')

  • php ('.php', '.php(345)')

  • postscript ('.ps', '.eps')

  • pot ('.pot', '.po')

  • pov ('.pov', '.inc')

  • prolog ('.prolog', '.pro', '*.pl')

  • properties ('*.properties')

  • protobuf ('*.proto')

  • py3tb ('*.py3tb')

  • pytb ('*.pytb')

  • python ('.py', '.pyw', '.sc', 'SConstruct', 'SConscript', '.tac')

  • r ('*.R')

  • rb ('.rb', '.rbw', 'Rakefile', '.rake', '.gemspec', '.rbx', '.duby')

  • rconsole ('*.Rout')

  • rebol ('.r', '.r3')

  • redcode ('*.cw')

  • rhtml ('*.rhtml')

  • rst ('.rst', '.rest')

  • sass ('*.sass')

  • scala ('*.scala')

  • scaml ('*.scaml')

  • scheme ('*.scm')

  • scss ('*.scss')

  • smalltalk ('*.st')

  • smarty ('*.tpl')

  • sourceslist ('sources.list')

  • splus ('.S', '.R')

  • sql ('*.sql')

  • sqlite3 ('*.sqlite3-console')

  • squidconf ('squid.conf')

  • ssp ('*.ssp')

  • tcl ('*.tcl')

  • tcsh ('.tcsh', '.csh')

  • tex ('.tex', '.aux', '*.toc')

  • text ('*.txt')

  • v ('.v', '.sv')

  • vala ('.vala', '.vapi')

  • vbnet ('.vb', '.bas')

  • velocity ('.vm', '.fhtml')

  • vim ('*.vim', '.vimrc')

  • xml ('.xml', '.xsl', '.rss', '.xslt', '.xsd', '.wsdl')

  • xquery ('.xqy', '.xquery')

  • xslt ('.xsl', '.xslt')

  • yaml ('.yaml', '.yml')

More Repositories

1

go-tutorial

Go learning materials,涵盖基础、中级和高级教程
Go
1,011
star
2

golang-cheat-sheet-cn

golang-cheat-sheet中文版,英文原版地址:https://github.com/a8m/golang-cheat-sheet
109
star
3

gpt-tutorial

GPT相关使用教程
Python
74
star
4

stock_crawler

R API for Crawling Stock and Index Data from Sina Finance
R
32
star
5

R-in-Action

Notes and Codes from Reading the book "R in Action"
R
26
star
6

MNIST_digit_recognition

Digit Recognizer for MNIST Data Set
MATLAB
24
star
7

finance_tutorial

证券、期货市场量化交易相关业务和技术知识笔记
21
star
8

AffinityPropagation

C++ Implementation for Affinity Propagation
C++
19
star
9

python-tutorial

Python tutorial,量化交易,涵盖基础、中级和高级教程
Python
7
star
10

cuhkthesis

Latex thesis template for CUHK graduate students
5
star
11

disributed-system-notes

Notes for distributed system
Go
5
star
12

google-go-style-guide

Google的Go语言编码规范
4
star
13

ctp-examples

C++ Examples for CTP API
C++
4
star
14

quant-trading-system

国内量化交易系统整理
3
star
15

coder-tech-news

科技类资讯汇总
3
star
16

acm_2014summer_training

CUHK acm 2014 summer training
C++
2
star
17

blog

Blog: Hugo + even theme + GitHub Pages + utterances
2
star
18

sre

运维相关常用命令
2
star
19

practical-go-cn

中文版本Practical Go: Real world advice for writing maintainable Go programs
2
star
20

jincheng9.github.io

personal blog
HTML
2
star
21

cpp_tutorial

C++ learning materials,涵盖基础、中级和高级教程
1
star
22

ray-examples

use ray to accelerate python
Python
1
star
23

frontend

frontend learning repo
Vue
1
star
24

sudoku_site

sudoku website for CUHK-THU sudoku association
HTML
1
star
25

crack_the_code_interview

Solutions for the book "Cracking the Coding Interview" 5th version
1
star
26

jincheng9

personal GitHub profile
1
star
27

leetcode

C++ solutions for leetcode problems
C++
1
star