Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#2198 closed enhancement (fixed)

Java highlighting support using SilverCity

Reported by: dcreager@… Owned by: Christian Boos
Priority: normal Milestone: 0.10
Component: wiki system Version: 0.9b2
Severity: normal Keywords: java highlighting silvercity
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I have made a couple of patches that allow Java code to be highlighted using the SilverCity engine rather than Enscript. This does not support different kinds of identifiers (i.e., using capitalization conventions that class names are CamelCase, methods/fields/vars/params are lowerCamelCase, and constants are ALL_UPPERCASE). But it's a start.

I am using these patches on an installation of 0.9b2; the Trac patch is a one-liner that might very well work in 0.8, as well.

Attachments (2)

silvercity-java.patch (4.5 KB ) - added by dcreager@… 19 years ago.
Patch for silvercity-0.9.5 to support lexing Java code
trac-java.patch (553 bytes ) - added by dcreager@… 19 years ago.
Patch for trac-0.9b2 to support SilverCity Java lexer (requires silvercity patch)

Download all attachments as: .zip

Change History (5)

by dcreager@…, 19 years ago

Attachment: silvercity-java.patch added

Patch for silvercity-0.9.5 to support lexing Java code

by dcreager@…, 19 years ago

Attachment: trac-java.patch added

Patch for trac-0.9b2 to support SilverCity Java lexer (requires silvercity patch)

comment:1 by dcreager@…, 19 years ago

This probably shouldn't go into the production Trac code until silvercity supports the Java lexer out of the box, but hopefully it will be useful to those users who are willing to roll their own.

comment:2 by Christian Boos, 19 years ago

Milestone: 0.10
Owner: changed from Jonas Borgström to Christian Boos

comment:3 by Christian Boos, 19 years ago

Resolution: fixed
Status: newclosed

Since r3345, it's possible to configure Trac to used the patched SilverCity:

[mimeviewer]
silvercity_modes = text/x-java:Java:5

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.