if its possible to make an editor like Notepad++
Certainly it is. But why do you want to reinvent the wheel when there are editors out there that will do this already?
Please help with what you can even if you can give me bits and peices to make the script myself.
We are not going to write it for you. That's not what this forum is for. However, if you make an attempt to write it yourself we can help you out with the problem areas. It might help to know your level of expertise.