Control the color of font in a bugnote

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Wesley
Posts: 9
Joined: 15 Dec 2017, 03:59

Control the color of font in a bugnote

Post by Wesley »

Hi everyone,

It seems that the out-of-box Mantis BT only supported the following HTML tags as defined in the config_defaults_inc.php file.

While we use mantis bt, we feel it would be much more convenient if we could control the font color of some parts in a bugnote. Just wonder if there someone has ever figured out on how to enable this functionality or something similar by customization. Thanks!

Code: Select all

/**
 * These are the valid html tags for multi-line fields (e.g. description)
 * do NOT include a or img tags here
 * do NOT include tags that require attributes
 * @global string $g_html_valid_tags
 */
$g_html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em, strong';
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Control the color of font in a bugnote

Post by atrol »

Wesley wrote: 28 Apr 2018, 15:29 It seems that the out-of-box Mantis BT only supported the following HTML tags as defined in the config_defaults_inc.php file.
Right, but like most of the settings, you can override it in config_inc.php

I am not sure if's a good idea to allow users set colors in text.
  • each user users other colors, each of them with a certain meaning
  • depending on the color, colored notes can be hard to read
Not sure if you are aware that Mantis 2.x offers Markdown support.
Have a look at this example, where so-called "inline code" is styled with different color.
https://www.mantisbt.org/bugs/view.php?id=24302#c59585

This is the Markdown code I entered to get what you see

Code: Select all

> for example he jumps from 192 to 196 and the numbers 193-194-195 are lost

Isn't this what I wrote before? 
>  but something like 1,4,7,10,

What's the output of `SHOW VARIABLES LIKE 'auto_inc%' ;` ?

If all displayed values are 1, you have to provide the additional information listed below

- Exact version ofPHP, Database, Web server, Browser and Operating System
- Relevant customizations (e.g. changes in config_inc.php, etc)
- Installed plugins or custom functions ?
- Was the MantisBT source code modified in any way ?
Please use Search before posting and read the Manual
Post Reply