Opened 17 years ago
Closed 12 years ago
#1605 closed defect (fixed)
Preserve wiki formatting within colored text
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | ColorMacro |
Severity: | normal | Keywords: | |
Cc: | chris@… | Trac Release: | 0.11 |
Description
with current macro, when I tried like this
Color(white,blue,Research?
It should change only color, I suppose. But it wasn't. Only changing the color is desirable without effecting any wiki formatting. Is is possbile to do this? Thank you very much.
Attachments (4)
Change History (13)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
That link should have been http://trac.edgewall.org/wiki/WikiMacros#expand_macrodetails
comment:3 Changed 14 years ago by
Summary: | keeping all formattings and changing only colors → Preserve wiki formatting within colored text |
---|
#7696 closed as a duplicate.
comment:4 Changed 14 years ago by
Cc: | chris@… added; anonymous removed |
---|
comment:5 Changed 13 years ago by
I uploaded a possible solution for this ticket. All simple Wiki formatting should work (like bold, italic, links to tickets, etc.). But it seems that no macros are working.
So this example is working with that patch:
[[Color(lime,None,wiki,This is ''just'' an '''simple''' test, for more info see #7696 or TitleIndex)]]
This example however is not working (it just prints "recent changes: [[RecentChanges(,3
" in lime background):
[[Color(lime,None,wiki,recent changes: [[RecentChanges(,3)]])]]
Changed 13 years ago by
Attachment: | ColorMacro_1605_processor.patch added |
---|
another patch: it is now also usable as WikiProcessor
comment:6 Changed 13 years ago by
I added another possible patch, which allows using it as processor. And in that you can use wiki processors and wiki formatting.
Changed 13 years ago by
Attachment: | ColorMacro_1605_processor2.patch added |
---|
another patch, which have rewritten most of the plugins code
Changed 13 years ago by
Attachment: | ColorMacro.py added |
---|
Python file, identical when merging with ColorMacro_1605_processor2.patch
comment:7 Changed 13 years ago by
I saw just now, that the functionality, which is provided by ColorMacro is already implemented as default in Trac, see http://trac.edgewall.org/wiki/WikiHtml#HowtoUseDivSpan. And using span
- and div
-macro is even more powerful.
comment:8 Changed 12 years ago by
Owner: | changed from David Roussel to Ryan J Ollos |
---|
comment:9 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Trac Release: | 0.10 → 0.11 |
That should be possible as the TracWikiMacros page says we can do this: