Problem with tabs in quotes

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
eike
Posts: 2
Joined: Thu Apr 07, 2011 7:07 am
Location: DE

Problem with tabs in quotes

Post 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
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
eike
Posts: 2
Joined: Thu Apr 07, 2011 7:07 am
Location: DE

Post 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.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
Post Reply