Opened 19 years ago
Closed 19 years ago
#2198 closed enhancement (fixed)
Java highlighting support using SilverCity
Reported by: | 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)
Change History (5)
by , 19 years ago
Attachment: | silvercity-java.patch added |
---|
by , 19 years ago
Attachment: | trac-java.patch added |
---|
Patch for trac-0.9b2 to support SilverCity Java lexer (requires silvercity patch)
comment:1 by , 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 , 19 years ago
Milestone: | → 0.10 |
---|---|
Owner: | changed from | to
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Since r3345, it's possible to configure Trac to used the patched SilverCity:
[mimeviewer] silvercity_modes = text/x-java:Java:5
Patch for silvercity-0.9.5 to support lexing Java code