Closed ArunPatal closed 2 years ago
The problem is that the built-in CSS definition is not yet registered when the HTML definition is loaded:
I suggest, you define a custom HTML highlighting, which should be registered after the built-in highlightings are loaded.
The problem is that the built-in CSS definition is not yet registered when the HTML definition is loaded:
I suggest, you define a custom HTML highlighting, which should be registered after the built-in highlightings are loaded.
Hi,
How about if i change source like below... Will css be loaded before html is loaded?
hlm.RegisterHighlighting("JavaScript", new[] { ".js" }, "JavaScript-Mode.xshd");
hlm.RegisterHighlighting("CSS", new[] { ".css" }, "CSS-Mode.xshd");
hlm.RegisterHighlighting("HTML", new[] { ".htm", ".html" }, "HTML-Mode.xshd");
It work, as you (Siegfried Pammer) mentioned css was not registered so changed position of css-mode as above code. I also added below line in HTML-Mode.xshd
<Color name="StyleTag" foreground="#FF8B008B" exampleText="<style> h1{color:red;}</style>" />
Hello,
I tried to add following lines in HTML-Mode.xshd, but it's not working. I need to highlight css in html document. (using 5.0.4)