Hacker News new | ask | show | jobs
by profsummergig 297 days ago
Off topic, but I discovered this recently:

http://tangentnotes.com/

Similar to Obsidian, but offers good code syntax highlighting in markdown files.

I found it useful for reading code in markdown.

2 comments

> Supports ... code blocks with syntax highlighting.

Based on the documentation and the screenshot next to it, I don't see how it differs from Obsidian on this point.

A Markdown code block in Obsidian is going to be highlighted as expected.

Actually it appears that they both relies on Prism to achieve this :

- https://help.obsidian.md/syntax#Code+blocks

- https://github.com/suchnsuch/Tangent/blob/main/apps/tangent-...

I've used Obsidian and Tangent. For whatever reason, I've found Tangent's code highlighting brighter, more colorful, and (maybe hence?) more easily readable. Obsidian is more muted. Steve Jobs would have preferred Obsidian.
Surely that's plugin-modifiable in Obsidian.
Doesn't even need a plugin, just some custom CSS iirc.
You can also create a code block in markdown and then write the language type at the top. This also creates highlighting.

‘’’go {your code} ‘’’

Thanks for this tip.

I've seen this feature off and on in some online code editors. I didn't know this was a (universal?) Markdown feature. Is it supposed to work universally in all Markdown editors (e.g. VSCode's Markdown view)?

I know it works in Obsidian. I believe it also works in VSCode.