[texworks] Regex challenges
joseph.wright at morningstar2.co.uk
Fri Apr 10 16:00:36 CEST 2009
Jonathan Kew wrote:
> I'm not seeing the behavior you describe, as far as I understand it; e.g.,
> \this at is@a at test'with quotes following'
> colours everything up to "test" (but not including "'with") as the
> control sequence.
Some more testing suggests I must have somehow corrupted my config
files. Starting from a fresh copy, everything seems to be okay. osrry
to bother you.
>> 2) In a DTX, comments in the explanation part start ^^A. This is easy to
>> match with \^\^A, but that matches even in the code blocks. Ideally,
>> I'd like:
>> - If the line start %, comment = ^^A
>> - If the line starts without %, comment = %
>> but only colouring from the start of the comment, not the start of the
>> line. Is this doable at all?
> I can't think of a way to do this.
Ah well: I just wanted to be sure I'd not missed anything obvious.
More information about the texworks