Ticket #2198 (closed enhancement: fixed)
Java highlighting support using SilverCity
| Reported by: | dcreager@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10 |
| Component: | wiki system | Version: | 0.9b2 |
| Severity: | normal | Keywords: | java highlighting silvercity |
| Cc: |
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
Change History
Changed 4 years ago by dcreager@…
-
attachment
silvercity-java.patch
added
Changed 4 years ago by dcreager@…
-
attachment
trac-java.patch
added
Patch for trac-0.9b2 to support SilverCity Java lexer (requires silvercity patch)
comment:1 Changed 4 years ago by dcreager@…
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:3 Changed 4 years ago by cboos
- Status changed from new to closed
- Resolution set to fixed
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