Created
May 11, 2017 00:00
-
-
Save katemihalikova/daa1fbacb264ec90a8e18909804092d1 to your computer and use it in GitHub Desktop.
Try some snippet in all github highlight languages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet = ` | |
#include <stdio.h> | |
int main(void) { | |
printf("hello world"); | |
} | |
`; | |
copy("abap,actionscript,ada,apache,applescript,asciidoc,assembly,autohotkey,batchfile,bro,c,cirru,clojure,cobol,coffee,coldfusion,csharp,css,d,dart,diff,django,dockerfile,dot,eiffel,ejs,elixir,elm,erlang,forth,fortran,ftl,gcode,gherkin,glsl,golang,groovy,haml,handlebars,haskell,haxe,html,ini,io,jade,java,javascript,json,jsoniq,jsp,jsx,julia,kotlin,less,liquid,lisp,livescript,lsl,lua,makefile,markdown,mask,matlab,nix,nsis,objectivec,ocaml,pascal,perl,php,pig,powershell,prolog,protobuf,python,r,rdoc,rhtml,rst,ruby,rust,sass,scad,scala,scheme,scss,sh,smarty,sparql,sql,stylus,swift,tcl,tex,toml,tsx,turtle,twig,typescript,vala,vb,verilog,vhdl,xml,xquery,yaml".split(",").map(e => "#### " + e + "\n```" + e + "\n" + snippet.trim() + "\n```").join("\n\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment