5
0
I am creating an API auto-complete XML file for my user-defined language. Can the description text assigned to the keyword be displayed as multiple lines inside the auto-complete pop-up window?
i.e.
<KeyWord name="sample" func="yes">
<Overload retVal="void" descr="A description. I want this text on a new line of the np++ auto-complete pop-up window.">
<Param name="filename string" />
</Overload>
</KeyWord>
This is the result of the XML code shown above:
Is there a way to add an escaped line feed or new line character to the "descr" attribute content to place text on a new line, i.e:
(Note: this "screenshot" was manually created in Paint.NET, and was NOT produced by np++)
I have already tried the solution suggested in S.O. question https://stackoverflow.com/questions/1823979/how-to-have-line-breaks-in-xml-attributes without success. Is there a way to do this?
If not, can someone tell me if is this a limitation of notepad++ or the base scintilla editing component?
This question seems more likely to be answered on StackOverflow.com. because Programmers tend to use it more than Super Users. – IsmailS – 2011-11-15T05:52:51.957
Doesn't
<Overload retVal="void" descr="A description.<br />I want this text on a new line of the np++ auto-complete pop-up window.">
work? If not, the other ways of getting a line feed include
-
- and in some scripting languages\n
. – ShoeMaker – 2012-06-14T23:09:51.833