0

Hi!

I want to create my own list of keywords so that if I write spells of any keyword wrong, it get's underlined like in usual compilers. How can I create a list and create an underline command?

4
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Mitja Bonca
0

When you define a new TYPE or class, it becomes a keyword.
When you declare a variable, it becomes a keyword.
When you declare a function or method, it becomes a keyword.
You can also use the "using" statement to alias a type.

Other than that, I see no need to make a list of new keywords unless you are creating a new language.

0

Yes sir, what if we want to make a new language?
Coloring the wrong words is better but how to create a list?

0

You can create a list of words like this:

public List<String> Words = new List<String>();

To add words to this list use the Add method:

Words.Add("MyFirstword");
0

Hi!

I want to create my own list of keywords so that if I write spells of any keyword wrong, it get's underlined like in usual compilers. How can I create a list and create an underline command?

Will you use RichTextBox control?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.