Quote (Klexmoo @ Mar 30 2019 06:08pm)
I'll check that out thanks
Quote (waraholic @ Mar 30 2019 08:08pm)
In what context are you trying to highlight the word? In an IDE and if so which? In a browser? In a program you've written? There may be an alternative solution to the problem you're facing.
What we need to do is :
1) Write a command in console specifying (or not) optional parameters (-colors and/or -stats) and one or multiple .cs (C#) files
2) Read C# file(s) (source code) passed as arguments
3) If -stats was specified, count the number of word and number occurences
4) If -colors was specified, parse the source code and highlight what an IDE would (well only keywords, text between quotes and comments are required) by putting them into <span> tags with a color.
5) Create an HTML file including <span> tags highlighting keywords, text between quotes and comments.