Publisher is EE6 compatible, but it does not support the Fluid field. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Turn of code highlighting

Status Resolved
Add-on / Version
Severity Trivial
EE Version

Matt Steele

Dec 27, 2012

Hi Brian-

I’m trying to turn off code highlighting but I can’t seem to figure it out. I’ve tried changing the settings and the config.php file, but no dice. I’m probably missing something simple.

You can see in the attached pic that it’s injecting spans with code highlighting, and I want that turned off. I’d rather just control the color through css.

You can see it here:

http://matt-steele.com/blog/single/responsive-font-sizing

Thanks for your time.

#1

BoldMinded (Brian)

Dec 28, 2012

You can change the colors in the $config array. I don’t have an example in front of me though.

#2

Brian Litzinger

Dec 28, 2012

Matt, if you add this to your config.php you can change the colors:

ini_set("highlight.default", "#999");
ini_set("highlight.comment", "#999");
ini_set("highlight.bg", "#999");
ini_set("highlight.html", "#999");
ini_set("highlight.keyword", "#999");
ini_set("highlight.string", "#999");
#3

Brian Litzinger

Dec 29, 2012

Matt, if this doesn’t work for you and you need to completely disable the code highlighting open a new ticket. This is the first request for such a feature so I don’t want to jump at adding a new option just yet if this solution works for your needs.

Login to reply