I know Notepad++ isn't a rich text editor, but I think there might be some clever ways around that.
For example, what if we could simply input a special string inside a comment and Notepad++ would know from that string to make the font size of that comment very large?
Or maybe another way to do it would be to have a separate cache file that would remember the font choices based on file name and location? This way the actual document would not be "tainted" by rich text cues.
One solution might be to use bookmarks (Ctrl-F2) for this. A bookmark currently makes a small visual difference in the document map, but it's not enough.
I think Npp is ready to do what you want to do.
Please look my screenshot :
In the menu style configurator, for each language, for each style, you can define the font style of the style :
If you need, create your own java style to define a new element of the grammar.
This new element would trigger a special style comment title
//Title : My Title 1
// normal comment:
document.getElementById("myH1").innerHTML="Welcome to my Homepage";
//Title : My Title 2
// normal comment:
document.getElementById("myP").innerHTML="This is my first paragraph.";
Here is a easier solution
Use for a title comment // ........
Use for a normal comment /* ...... */
configure the style you want for your title comment : Font, Font size, Bold, Italic, Underline
Look at my screenshot.
Oh wow, what a nice surprise that it is already possible! Thank you very much for letting me know about this!
Bummer, I did some testing and it looks like the document map doesn't show the bigger headlines. I guess that my feature request should be that the document map would accurately reflect the styles of the document.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.