Opened 8 years ago

Last modified 6 years ago

#2452 new defect

Use tag to begin / to end the color

Reported by: angedjnico@… Owned by: diroussel
Priority: normal Component: ColorMacro
Severity: normal Keywords:
Cc: Trac Release: 0.10


When I would like to color anything, I sometimes use symbols ", " "(" ") " and it poses problem of with the use of the macro.

I offer a resolution: use tag of the beginning and tag of the end, and accept named symbols (ex : [[Colorbegin(blue)]] text with (,) [[Colorend]] )


Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by edward.ellis@…

The problem is that the documentation says "any text or html you like", which is not quite true. I found that using a comma in the text field confuses the macro. Please start off by documenting the characters that we can not use. Then provide a workaround to enable us to use those few forbidden characters.

comment:2 Changed 8 years ago by diroussel

I've fixed the comma problem, and updated the documentation text to note about '(' and ')'.

Using start and end tags could be done, but it would be two separate macros. Feel free to submit working code.

comment:3 Changed 7 years ago by rjollos

What about just adding an escape character for problematic characters. Then ( and ) could be used by specifying them as \( and \). I haven't looked at the code to see how this could be implemented, but it seems like it would be straightforward. Your thoughts?

comment:4 Changed 6 years ago by diroussel

patches welcome on this one. I haven't the time to mess around with it. Maybe next year! :-)

Add Comment

Modify Ticket

as new The owner will remain diroussel.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.