Modify

Opened 17 years ago

Closed 8 years 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

Description

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]] )

Thanks

Attachments (0)

Change History (7)

comment:1 Changed 17 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 16 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 15 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 15 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 8 years 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 8 years ago by massimo.b@…

Ok, I found the

{{{#!Color color=green
Wikitext
}}}

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

comment:7 Changed 8 years 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
Action
as closed The owner will remain David Roussel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.