Edgewall Software

Ticket #2198 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

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

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

Change History

Changed 4 years ago by dcreager@…

Patch for silvercity-0.9.5 to support lexing Java code

Changed 4 years ago by dcreager@…

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

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.

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • milestone set to 0.10

Changed 3 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

Add/Change #2198 (Java highlighting support using SilverCity)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.