Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

enter image description here

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++) enter image description here

I have already tried the solution suggested in S.O. question http://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?

share|improve this question
    
This question seems more likely to be answered on StackOverflow.com. because Programmers tend to use it more than Super Users. –  iSid Nov 15 '11 at 5:52
    
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 &#10; - &#13; - and in some scripting languages \n. –  ShoeMaker Jun 14 '12 at 23:09

1 Answer 1

Try inserting a real carriage return in the XML file by just hitting enter where you want to break the line.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.