-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add todo highlighting in the html comments #369
Comments
I wanted this as well. I ended up setting up something in my vimrc across all files, but before that I attempted this patch: diff --git i/syntax/markdown.vim w/syntax/markdown.vim
index d8d34ea..d962f6c 100644
--- i/syntax/markdown.vim
+++ w/syntax/markdown.vim
@@ -85,6 +85,9 @@ syn region mkdLinkTitle matchgroup=mkdDelimiter start=+"+ end=+"+ contained
syn region mkdLinkTitle matchgroup=mkdDelimiter start=+'+ end=+'+ contained
syn region mkdLinkTitle matchgroup=mkdDelimiter start=+(+ end=+)+ contained
+" Highlight TODO in markdown files
+syn keyword mkdTodo contained TODO FIXME XXX TBD
+
"HTML headings
syn region htmlH1 matchgroup=mkdHeading start="^\s*#" end="$" contains=mkdLink,mkdInlineURL,@Spell
syn region htmlH2 matchgroup=mkdHeading start="^\s*##" end="$" contains=mkdLink,mkdInlineURL,@Spell
@@ -177,6 +180,7 @@ HtmlHiLink mkdLinkDef mkdID
HtmlHiLink mkdLinkDefTarget mkdURL
HtmlHiLink mkdLinkTitle htmlString
HtmlHiLink mkdDelimiter Delimiter
+HtmlHiLink mkdTodo Todo
let b:current_syntax = "mkd" Which did not work. I'd love to know or how to get it to work, though. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we have some markdown code with an html comment:
<!-- TODO my thing -->
highlight the word
TODO
The text was updated successfully, but these errors were encountered: