You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My task is to extend the HTML language: to add a new kind of tag that is written in square brackets. To get started, I've reused the code for html from basic-languages
I got this code, the difference between the original code: I added a couple of regular expressions that allow you to write tags like [word][/word] and removed the script and style tags
The code highlighting works, but I've found that suggestions for existing html tags don't work as if I were using the normal html language:
I suspect that HtmlWorker is doing this and it just can't recognise a new registered language to work by the same rules, even if the differences are minimal. Can you please tell me how to properly register a language based on existing rules for html and re-use the HtmlWorker for correct suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My task is to extend the HTML language: to add a new kind of tag that is written in square brackets. To get started, I've reused the code for html from basic-languages
I got this code, the difference between the original code: I added a couple of regular expressions that allow you to write tags like
[word][/word]
and removed thescript
andstyle
tagssetup.js file
The code highlighting works, but I've found that suggestions for existing html tags don't work as if I were using the normal
html
language:I suspect that HtmlWorker is doing this and it just can't recognise a new registered language to work by the same rules, even if the differences are minimal. Can you please tell me how to properly register a language based on existing rules for html and re-use the HtmlWorker for correct suggestions?
Beta Was this translation helpful? Give feedback.
All reactions