How to indent in IntelliPrompt

SyntaxEditor for Windows Forms Forum

Posted 20 years ago by Greg Shaffer - Boulder
Avatar
Hi Again,

How can I indent text in the IntelliPrompt.

I'm building the string with a StringBuilder...

StringBuilder sb = new StringBuilder();

I have tried:

sb.append(" "); , ( Does nothing )
sp.append("   "), ( Seems to clear out the intelliprompt )
sp.append("\t") ( Shows \t in the intelliprompt )

Thanks,
Greg

Comments (3)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The strings you pass in must be XML compliant and are loaded as XML. Therefore all whitespace is collapsed into a single space. You can get   functionality by using the entity for a whitespace character which is:
 

Just put a bunch of those in a row to get indentation on a line.

[ 04-29-2004: Message edited by: Actipro Software Support ]


Actipro Software Support

Posted 20 years ago by Greg Shaffer - Boulder
Avatar
That doesn't seem to do anything.

If I try:
IntelliPrompt.InfoTip.Info.Add("...160;...160;...160;hi");

Then the "hi" is at the beginning of the line.

If I Try:
IntelliPrompt.InfoTip.Info.Add("...160;...160;...160;hi...160;there");

Then I get the spacing between the "hi" and the "there", but not the spacing at
the beginning of the line.

It seems as if the spacing is trimmed from the line. Are you doing a trim call?

Thanks,
Greg

[ 04-29-2004: Message edited by: Greg Shaffer ]

[ 04-29-2004: Message edited by: Greg Shaffer ]
Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I'm going to have to check it out again.

But I forgot about an undocumented way to indent. It will recognize a spacer tag with a width property. So if you want to indent 30 pixels you could do this:
<spacer width="30"/>


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.