Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#127 closed enhancement (fixed)

Custom Wiki Formatting (color coded python code)

Reported by: Stephen <trac@…> Owned by: daniel
Priority: normal Milestone: 0.7
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: tbrkic@… Branch:
Release Notes:
API Changes:

Description

We're going to be using Wiki a lot for documenting 'best practices' for coding and general code discussions, so we'd love to be able to color-code the python code in the Wiki like you can in MoinMoin.

It'd be nice to be able to use the same formatting when viewing a file in the Browser or via 'svn:blah/foo' TracLinks. Perhaps a dispatcher function which can determine which formatter to use depending on the filetype/extension?

Attachments (2)

rch.py (10.3 KB ) - added by jernej.goricki@… 10 years ago.
richards
rch.2.py (10.3 KB ) - added by jernej.goricki@… 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by Jonas Borgström, 15 years ago

Milestone: 1.0

comment:2 by daniel, 15 years ago

Milestone: 1.00.7

Partially fixed in [429].

The browser still needs to be improved to allow mimeviewers.

comment:3 by daniel, 15 years ago

Cc: tbrkic@… added

Marked #166 as a duplicate.

comment:4 by daniel, 15 years ago

Owner: changed from Jonas Borgström to daniel
Status: newassigned

comment:5 by daniel, 15 years ago

Resolution: fixed
Status: assignedclosed

[429] and [439] implements this as expected.

I've also added built-in WikiProcessors for most common programming languages.

comment:6 by daniel, 15 years ago

See #271 for documentation.

by jernej.goricki@…, 10 years ago

Attachment: rch.py added

richards

by jernej.goricki@…, 10 years ago

Attachment: rch.2.py added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
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.