12 years ago
How to read a file in an editor line by line and how can we find a highlighted text
Hi
We are using an WPF application in which a javascript file gets opened in an editor window.
When we map this object then we are getting a "Text" property which contains an entire text of a file.
We want to read a.js file line by line from this editor as we need to check whether keyword are highlighted in a script.
e.g function abc()
{
var name="a1"
}
Here we need to check that function keyword is highlighted in blue color
We are unable to find any such property through which we can reach to this line and then extract the keyword function and check the control.
This control is created in WPF.
We can get the number of lines through LineCount property but we are not able to read a line