Opened 10 years ago

Closed 14 months ago

#2452 closed defect (wontfix)

Use tag to begin / to end the color

Reported by: angedjnico@… Owned by: David Roussel
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 (7)

comment:1 Changed 10 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 10 years ago by David Roussel

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 9 years ago by Ryan J Ollos

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 8 years ago by David Roussel

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

comment:5 Changed 16 months ago by massimo.b@…

Currently it is not possible to set the text color for a large wiki block, only for small sentences inside the macro syntax. Please add a begin and end tag to set the font color in a wiki.

comment:6 Changed 16 months ago by massimo.b@…

Ok, I found the

{{{#!Color color=green

syntax of the WikiExtrasPlugin, which only works when removing the ColorMacro.

comment:7 Changed 14 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Plugin is deprecated. Please use WikiExtrasPlugin instead.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain David Roussel.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.