Tk Library Source Code

View Ticket
Login
Ticket UUID: 1007764
Title: ctext - Clarifications needed in the documentation
Type: Bug Version: None
Submitter: arjenmarkus Created on: 2004-08-12 06:31:04
Subsystem: tklib :: ctext Assigned To: aku
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2022-05-10 12:43:44
Resolution: None Closed By: nobody
    Closed on:
Description:
I would like to point out a few missing details in the
documentation of ctext:

1. You need to use the command "highlight" when the
widget has been filled to get the colouring to show.
(Presumably also after each new addClass command)

2. You need to use unique tag names if you want more
than one regular expression to work for the same
colouring (e.g. alternative formats for comment)

3. Line numbering could interfere with the -elide
option. It appears possible to use the linemap
facilities to make the two work together, but this has
not been described in any detail.
User Comments: aku added on 2022-05-10 12:43:44:
@arjen

I should be able to update the docs for (1) and (2), if you can provide me with example code.

I am punting on (3) now knowing the internals of ctext that well.