Keynote I guess pushed an update that doesn't take hightlighted code from xCode anymore. So, I googled around and found highlight. It is a super useful utitlity to do syntax highlighting from the command line.
Markdown is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform. What you will learn: How the Markdown format makes styled collaborative editing easy How Markdown differs from traditional formatting approaches. The wizard takes advantage of the fact that GitHub allows img tags to occur in the README.md. Also, the wizard makes use of the popular trick of uploading images to GitHub by drag'n'dropping them in the issue area (as already mentioned in one of the answers in this thread). While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email. The best way to get a feel for Markdown’s formatting syntax is simply to look at a Markdown-formatted document. Markdown - mac - md file syntax. VS Code uses the marked library for parsing, and has Github Flavored Markdown support enabled by default, but it will.
Md Github Syntax Tutorial
If you are on Mavericks you may need to
brew link lua
to get it working right.Hightlight has support for all kinds of languages and themes and it can wrap the code with line numbers, which is great. Remote control for mac desktop.
I made an alias on my bash profile to take what is on my clipboard, pipe it into highlight, then pipe it back to my clipboard. Nik sharpener for mac.
So if I want to highlight the code I have copied, I jump over to the terminal, run
hit
and then paste it into keynote. It's an extra step but it removes the need to use xcode. Since I don't need xcode anymore, I can cat
files into pbcopy
, then run hit
and never leave the terminal.Github Filter Syntax
Block ads for mac os. You can use
sed
to get spcific lines of a file to stdout
so I made another alias _hit
that removes the first pipe of pbpaste
Github Md File Syntax
So if I wanted to get lines 10-15 of a file highlighted, could do