Page 1 of 1

Adding line breaks

Posted: Tue Nov 16, 2010 10:47 am
by gibsonmatte
Hi,

To start with I'm quite new to "advance" use of Textpad and I hope you can understand my questions and problems.

What I have done so far is that I have created a new .syn file (syntax file) and added a new document class for this. So far so good and the syntax highlight and more works just fine.

But what I really would like is to add the option to always include a line break after a predefined "end of string".

Example:
The original file contains all the text in 1 line. Each "string" ends with a ' sign. After the 'sign a line break should be inserted.

Original file:
AAA:1234'BBB:1234'CCC:1234'

Result:
AAA:1234'
BBB:1234'
CCC:1234'

So, is there a easy way to do this? Is this feature available in the .syn file or is there nay other way to automatically have this done when opening a file for this new document class?

Many thanks in advance!