View Issue Details

IDProjectCategoryView StatusLast Update
0004318mantisbtfeaturepublic2017-07-12 05:03
Reporterbpfennig Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
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.

Relationships

related to 0007859 new Patch: Code Highlighting in Mantis 
child of 0004181 closed Features in Mantis 1.1 release 

Activities

2004-08-12 06:14

 

code_tag_example.jpg (80,817 bytes)
code_tag_example.jpg (80,817 bytes)
thraxisp

thraxisp

2004-08-12 06:28

reporter   ~0006963

The HTML "pre" tag is supported.

2004-08-21 13:25

 

code_highlighter.jpg (92,865 bytes)
code_highlighter.jpg (92,865 bytes)
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.

Issue History

Date Modified Username Field Change
2004-08-12 06:14 bpfennig New Issue
2004-08-12 06:14 bpfennig File Added: code_tag_example.jpg
2004-08-12 06:16 jlatour Status new => acknowledged
2004-08-12 06:16 jlatour Relationship added child of 0004181
2004-08-12 06:28 thraxisp Note Added: 0006963
2004-08-21 13:25 bpfennig File Added: code_highlighter.jpg
2004-08-21 13:26 bpfennig Note Added: 0007099
2004-08-21 13:27 bpfennig Assigned To => bpfennig
2004-08-21 13:28 bpfennig Status acknowledged => assigned
2004-08-24 15:13 DGtlRift Note Added: 0007145
2004-08-24 15:16 DGtlRift Note Edited: 0007145
2004-08-24 16:11 bpfennig Note Added: 0007146
2006-03-02 06:46 ryandesign Note Added: 0012262
2006-03-02 12:02 BenBE Note Added: 0012270
2006-10-25 11:20 onad Note Added: 0013645
2007-03-30 03:59 giallu Relationship added related to 0007859
2009-06-13 04:05 siebrand Note Added: 0022123
2009-06-13 04:05 siebrand Assigned To bpfennig =>
2009-06-13 04:05 siebrand Status assigned => new
2009-06-15 03:39 vboctor Status new => acknowledged
2009-06-15 03:40 vboctor Note Added: 0022160