Ticket #193 (new defect)
Making Color-formatting a part of the formatter
| Reported by: | NilsLindenberg | Owned by: | unassigned |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4 |
| Component: | formatters | Version: | 1.1.6.1 |
| Severity: | normal | Keywords: | color action formatter |
| Cc: |
Description
We have a (now rewritten :) color action but it should better be a formatter.
Reference
discussion from the SuggestionBox
The current color formatting isn't very wiki like. Altho i can see how ""{{}}"" fits with wikka formatting style, text color is something i see myself using more often than tables. so here's the suggestion...
%%<color> text%%
this regex syntax is lifted from a ""UseMod"" Wiki patch.
%%s/\([a-zA-Z]{1,}|#[0-9A-Fa-f]{6}) (.*?)\/<span style="color:$1;">$2<\/span>/%%
I am by NO means a regex expert, but it seems that this should do the deal... I'm just not sure where it would go. By using style here, you can use #0000ff, #00f, as well as just blue or any other html defined color name. --MonstoBrukes
Please take a look at WikkaExtensibleMarkup --NilsLindenberg
I looked at it. what point specifically did you intend i take from it?
JavaWoman had a proposal about a color-markup there. I think its the better place for the discussion. The recognition of markup is done in the formatter (formatters/wakka.php). I am no expert for regexps too, but wouldn't the first or catch too much? --NilsLindenberg