3 ms·
I’m glad that this gives better results than screenshots of code but, to be honest, a bit saddened that it has to exist at all. Twitter, I get a little: it’s me
by saagarjha 7y ago
I’m glad that this gives better results than screenshots of code but, to be honest, a bit saddened that it has to exist at all. Twitter, I get a little: it’s meant for short thoughts and can’t really work well for code, but Medium (for example) not supporting code is hard to understand.
- cyberferret 7y agoAFAIK, Medium does support embedded Gists from GitHub etc. At least it did when I last wrote a programming guide in it. Update: Still seems that it does (scroll down) [0] Edit: Oops, I just remembered that HackerNoon moved off Medium to their own CMS, but those Gists did used to work on Medium too, complete with code formatting. [0] - https://hackernoon.com/building-a-face-recognition-web-app-in-under-an-hour-345aa91487c https://hackernoon.com/building-a-face-recognition-web-app-i...
- oefrha 7y agoSupporting embedded gists is hardly "supporting code". We're talking about fetching one additional iframe plus a third party script per code blob, for what should be inline HTML plus ~30 lines of CSS (check out pandoc rendered HTML with syntax highlighting, for instance). The page you linked also demonstrates visually broken embeds with extraneous white space on the bottom; hardly a glowing endorsement. I get embedding Codepens and stuff for rendered code. Embedding gists for static, verbatim code is just sad. (Not saying it doesn't have its uses, but having to use it is another matter.) But this is far from the most annoying thing about Medium, so meh.
- yawaramin 7y agoMedium is not a technical blogging platform. Try dev.to, it has excellent syntax highlighting.
- soonnow 7y agoMedium does support code, without highlighting though and only accessible through unobvious keys: To begin a code block, go to a new line and type ``` (triple backtick). For inline code in a paragraph, type a single backtick ` to begin and end your code. Or highlight some text and press the backtick key.