leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
466 stars 17 forks source link

C# XML Comments highlighting non existent blocks. #134

Open benny-yamagata opened 7 months ago

benny-yamagata commented 7 months ago

When writing XML Comments in C# programs, I have noticed that sometimes blockman highlights non existent or incorrect blocks in the comments.

Here is an example:

image

leodevbro commented 7 months ago

I see. Blockman uses third party libraries (with some additional custom code) to detect tokens like HTML/XML tags, curly/square/round brackets, Python/Yaml indentation and so on. Blockman cannot use the native tokens of VS Code, because VS Code extension API does not have this feature. Those third party libraries (with some additional custom code) are not smart enough to ignore some comments in different languages like C#.

I'll try to find smarter libraries.

Also, you can disable HTML/XML tag detection by Blockman. Go to VS Code settings, search Blockman: N25 Analyze Tags and uncheck it.