Syntax extensions
I would love to be able to extend the markup syntax that nvUltra recognizes.
For example, when taking notes of conversations or meetings, I find it helpful to keep track of who's talking by starting a line with a `%` and the speaker's name. By extending the syntax, I could style that with a theme (e.g., turning blue any lines matching the regex expression `^\? \R.*`).
Also, although nvUltra has become my primary app for using my markdown notes, I sometimes use other apps with slightly different syntax (e.g., ==highlighting== and ~~strikethrough~~ instead of {==CriticMarkup==} {--equivalents--}). Syntax extension would allow me to mark up multiple styles, making nvUltra that much more useful for people who might use multiple apps.
For examples of this, see Drafts and NotePlan, both of which have introduced slightly different versions of the feature.
Noteplan incorporates a regex pattern into the JSON defining theme elements, so you can (re)define what "highlight" looks like, etc.
Drafts goes one step further and decouples syntax from theming, allowing you to define a syntax element in one JSON file, and theme it in different ways with different themes via their JSON definitions.
Although the Drafts approach is considerably more powerful, either would work for me.
-
Yes, love this. See also my earlier comment about adding to the search syntax by extending the character set that the indexing function uses.
=Steve
0 -
nvUltra uses Markdown/MultiMarkdown, which defines which elements are supported for syntax highlighting.
There are no plans to support other "languages", but any new features added to MultiMarkdown will, of course, be supported. The only exception at this time is WikiLinks, which are not part of MultiMarkdown, but are supported within nvUltra.
0
Please sign in to leave a comment.
Comments
2 comments