Mantis

How to force BBCode to start code highighting?

Posted by parslej 
How to force BBCode to start code highighting?
June 12, 2008 10:56AM
I've installed newest BBCode plugin and code highlighting seems to not working.

I've tried use style: code - no success

Please advice!
Re: How to force BBCode to start code highighting?
June 12, 2008 11:12AM
You have to specify the language of the code to highlight.

By example
Language: PHP
or [code=Text] or [code=SQL] or...   Vincent   [hr] [b]Mantis[/b]: 1.1.0, 1.1.5, 1.1.1 [b]PHP[/b]: 5.0.4 [b]SQL[/b]: 5.0.19 [b]OS[/b]: Linux   Please complete your [url=http://forum.morinie.fr/mantis/control.php?0,panel=sig]signature[/url] with your environment informations. Enable skype notification [url=http://forum.morinie.fr/mantis/control.php?0,panel=privacy]here[/url]
Re: How to force BBCode to start code highighting?
June 12, 2008 11:34AM
I did that. Still no success.

Shall I surround code by something like
 
?

What I've tried:


Code TEST
[CODE=SQL]
select * from table1 where ID=1


            

            

            

            
        
Re: How to force BBCode to start code highighting?
June 12, 2008 11:44AM
You forget the closing bracket [/code].

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: How to force BBCode to start code highighting?
June 12, 2008 11:58AM
This time it started working!

Many Thanks!

Maciey
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 18
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr