Page 1 of 1

Problem with tabs in quotes

Posted: Thu Apr 07, 2011 7:18 am
by eike
Hi,

I am evaluating TextPad at the moment and it seems to be quite the editor I am looking for.
There is only one thing that bugs me and its basically a no-go for me to buy it.
I am using a syntax file for HTML/JS and it keeps destroying my code lines once I have a tabulator in a quoted string.
Image
The tabs outside of the quotation work fine, only the tabs in the single quotes are displayed as vertical bars and kill the cursor placement in the following characters.
I've tried different syntax files and also tried to look into the syntax definition file, but could not figure out how to get rid of it.
I would be very thankful if you had any hint for me.
My version is the latest (5.4.2).

Best regards
Eike

Posted: Thu Apr 07, 2011 8:07 am
by ben_josephs
I suspect they're not tabs.

Open the file in binary mode, to display it as a sequence of bytes:
File format: Binary

Find the characters following the quotes. What character code do they have? Tabs have the character code hex 09.

Posted: Thu Apr 07, 2011 11:35 am
by eike
They are tabs (#09, ^I). And once I remove the quotes, they are displayed as tabs again. I can hit the tab key and a vertical bar is inserted.

Posted: Thu Apr 07, 2011 12:39 pm
by ben_josephs
I can't reproduce this.
You wrote:I can hit the tab key and a vertical bar is inserted.
Do you mean that the tab key is entering the wrong character? I don't know what might be causing that.