5/2/2023 0 Comments Google docs for mac github![]() ![]() ✔ Free and Open Source Example Markdown file Markdown Viewer boasts the following features (emphasis added): It works really well, and looks surprisingly similar to GitHub markdown! Just open your markdown file in Chrome with this plugin installed and activated, then use the menus to print and save as a PDF right from Chrome. My preferred technique, because it looks so good, is to use the Markdown Viewer plugin in Chrome. I'm still looking for a command-line solution which produces results this high-quality, but: Vim, ps2pdf (provided by Ghostscript) and Source-highlight are all available via Cygwin. Source-highlight -s java -f html -i Hello.java -o Hello3.html -title "Happy Java with java2html :-)" -tab 3Īnd each outputting their own respective HTML file:įurther examples of Source-highlight usage can be found here Source-highlight -s java -f html -input Hello.java -output Hello2.html -doc A list of all languages supported by Source-highlight can be found here.Ī few example Source-highlight commands include: source-highlight -s java -f html -i Hello.java -o Hello1.html ![]() If you'd like instead to go the route of HTML or LaTeX, you could try Source-highlight instead. This will produce a PostScript file that can be converted to pdf using, for example, ps2pdf: ps2pdf /path/to/file.ps Or inside of vim: :hardcopy >/path/to/file.ps If you have vim, you can easily achieve syntax highlighting by running the following from a terminal: vim -c hardcopy -c quit /path/to/file.ps Unfortunately, there's no good way to convert Markdown directly to a PDF file with syntax highlighting. On Github, you can use this to specify syntax highlighting like so: ```ruby As I stated in my comment, Github uses Linguist to provide syntax highlighting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |