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?

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.

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

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");

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?