View Issue Details

IDProjectCategoryView StatusLast Update
0004318mantisbtfeaturepublic2024-10-28 13:27
Reporterbpfennig Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionduplicate 
Summary0004318: 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.

TagsNo tags attached.
Attached Files
code_tag_example.jpg (80,817 bytes)   
code_tag_example.jpg (80,817 bytes)   
code_highlighter.jpg (92,865 bytes)   
code_highlighter.jpg (92,865 bytes)   

Relationships

duplicate of 0034124 closedcommunity Add syntax highlighting to markdown codeblocks 
related to 0007859 resolveddregad Patch: Code Highlighting in Mantis 
child of 0004181 closed Features in Mantis 1.1 release 

Activities

thraxisp

thraxisp

2004-08-12 06:28

reporter   ~0006963

The HTML "pre" tag is supported.

bpfennig

bpfennig

2004-08-21 13:26

reporter   ~0007099

This is my first try (see last attached image) - any comments?

DGtlRift

DGtlRift

2004-08-24 15:13

reporter   ~0007145

Last edited: 2004-08-24 15:16

Very cool, how does it know the language... it it is c, html, php, java, etc? something like:

{code lang=c}
bunch of c code...

{/code}

edited on: 08-24-04 15:16

bpfennig

bpfennig

2004-08-24 16:11

reporter   ~0007146

For now I realize it like this:

[c]
bunch of c code
[/c]

or

[html]
bunch of html code
[/html]

ryandesign

ryandesign

2006-03-02 06:46

reporter   ~0012262

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/

BenBE

BenBE

2006-03-02 12:02

reporter   ~0012270

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

onad

onad

2006-10-25 11:20

reporter   ~0013645

Good idea!

siebrand

siebrand

2009-06-13 04:05

developer   ~0022123

Unassigned after having been assigned for multiple years without progress.

vboctor

vboctor

2009-06-15 03:40

manager   ~0022160

Ideally we should have a 1.2.x plugin that integrates GeShi with MantisBT.

dregad

dregad

2024-10-28 13:27

developer   ~0069412

Syntax Highlighting in code blocks is available since 2.27.0 via the bundled MantisCoreFormatting plugin, see 0034124.