View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004318 | mantisbt | feature | public | 2004-08-12 06:14 | 2024-10-28 13:27 |
Reporter | bpfennig | Assigned To | dregad | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | duplicate | ||
Summary | 0004318: Code tag for bugnotes | ||||
Description | Additional [code] [/code] tag for bugnotes and other text fields to have a formatted output for code snippets. See attachment for an example from another board. They have two different code tags, one for code and one special tag for php and html with syntax highlighting. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
The HTML "pre" tag is supported. |
|
This is my first try (see last attached image) - any comments? |
|
Very cool, how does it know the language... it it is c, html, php, java, etc? something like: {code lang=c} {/code} edited on: 08-24-04 15:16 |
|
For now I realize it like this: [c] or [html] |
|
There are several code syntax highlighters available. Maybe we could include one of them in Mantis. GeSHi might fit the bill. http://qbnz.com/highlighter/ |
|
Well, GeShi should do for most purposes, although it's not always the fastest. But as long as there aren't postet complete 100kb source files it should do fine. I really would like to see Mantis using GeSHi; vice versa it's already the case g Cf. http://geshi.org/developers/bugs/ P.S.: I'm contributor\maintainer of the Delphi\Object Pascal language for GeSHi |
|
Good idea! |
|
Unassigned after having been assigned for multiple years without progress. |
|
Ideally we should have a 1.2.x plugin that integrates GeShi with MantisBT. |
|
Syntax Highlighting in code blocks is available since 2.27.0 via the bundled MantisCoreFormatting plugin, see 0034124. |
|