Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Syntax highlight and inserting special character extension

$
0
0

My English is not perfect, Sorry.

I am using Visual Studio 2010-2019 Community for typeing source files for my own language. These are UTF-8 files. I wish to create an extension: insering special characters by pressing own key combinations, for example, Alt+R should be insert ∈. I do not know Visual Studio Extensions use what language. I know only C, C++, Pascal, Assembly. I have no experience in any scipting or interpreting languages, only compiled languages. So, I need an example routine for inserting, after it, I can copy, modify the name and the inserted character, so I can make the routines of the other special characters.

This extension should be make syntax highlight: comment must be displayed in other color, for example cyan: 00FFFF. Comments are in [], nested comments are allowed. This is very simple: nesting level in the brackets must be computed: 0 at the begin of the file, [ increases with 1 (C++: ++ or += 1), ] decreases with 1 (--, -= 1 in C++). 0 -> -1 transition is an error: the ] can be showed in red for example, but can be cyan or default, the number of nesting level must remain 0, not -1. If the nesting level of the end of the file is not 0, this is an error so, but error report is not required.

Thanks.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>