That doesn't work for me. Even if I manually modify the original template, that doesn't work. Any help?For a 'quick & dirty' method while debug mode is turned on and logged in as an admin to the ACP, go into...
ACP => Appearance => Template Modifications => {Digital Point Syntax Highlighter} editor_dialog_code
In the "Replace" text box add your new selections to the list of options. For example, for a new project I am working on I added ColdFusion to the list of choices.
The value to use for the "code=" part has to match the name of file in your {xf}/library/DigitalPointSyntaxHighlighter/geshi folder. My new entry for ColdFusion, for example, would use "cfm.php" so "cfm" is the value to use for the code in the option while the "ColdFusion" text could be anything you want it to be.Code:<script src="{$javaScriptSource}/digitalpoint/syntax_highlighter.js?_v={$xenOptions.jsVersion}"></script> $1 <option value="code=CFM">ColdFusion</option> <option value="code=JavaScript">JavaScript</option> <option value="code=CSS">CSS</option>
I got the following errordigitalpoint submitted a new resource: GeSHi Syntax Highlighter
GeSHi based syntax highlighter that intercepts CODE, HTML and PHP BBCode.
Read more
Geshi doesn't really have an (easy) mechanism to change the colors. The colors are defined within the individual files for each language (within the geshi folder).Good day, How can I change the colors?
@digitalpoint I do not get an activation email with you in the Forum
Did you upload the files? If so, did you upload them to the right place? That error is going to be from XenForo not being able to find the PHP files that come with it.I got the following error
Callback DigitalPointSyntaxHighlighter_Listener_LoadClassBbCode_Formatter_Base::loadClassListener is invalid (Invalid Class).
I am using Xen foro latetst version 1.5.4.
Can you please let me know the issue
Many Thanks
I followed the following steps.Geshi doesn't really have an (easy) mechanism to change the colors. The colors are defined within the individual files for each language (within the geshi folder).
Did you upload the files? If so, did you upload them to the right place? That error is going to be from XenForo not being able to find the PHP files that come with it.
Many Thanks, it got fixed and now addon is installed.The CONTENTS of the upload folder get uploaded, not the upload folder itself. You end up with a new folder in your normal XenForo js folder and a new folder in your normal XenForo library folder.
It's in the same place as it is here. The addon doesn't add an icon if that's what you are asking?
I'm not sure what you are asking... there are no options for the addon in the admin area of XenForo.
problem is...the text like function() etc and webGLRenderer they dont have anything to "differentiate" them it's all under the same "class"It doesn't apply its own CSS... It's just using the colors geshi uses. If you want to apply your own CSS, you'd just want to add your own CSS rules.
.code span {
color: white !important;
}
Looks like from one particular forum's rssIs it on a particular page of your site?
Looks like from one particular forum's rss
ErrorException: Undefined index: LANG_NAME - library/DigitalPointSyntaxHighlighter/geshi.php:651
Generated By: Unknown Account, Today at 4:22 AM
array(3) {
["url"] => string(44) "http://www.tonymacx86.com/forums/-/index.rss"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.