Code

Code 2.2.0

No permission to download
@applelappalala this addon just makes code blocks more pretty and functional. It does not add any languages. You can add them yourself:
Thanks for your fast response. I will take look at this doc. Great Job!!
 
@applelappalala this addon just makes code blocks more pretty and functional. It does not add any languages. You can add them yourself:
I have added the code as you mentioned in the guide, but it's not working. I am using xenforo 2.1 and code 2.1.2 version. I tried using default from insert code and with [CODE lang="dart" title="main.dart"]Some code[/CODE] and shows the default grays color instead. What am I doing wrong here?

Screen Shot 2019-03-10 at 2.48.29 PM.webpScreen Shot 2019-03-10 at 2.51.12 PM.webpScreen Shot 2019-03-10 at 2.54.03 PM.webpScreen Shot 2019-03-10 at 2.54.36 PM.webpScreen Shot 2019-03-10 at 2.56.13 PM.webp
 
Do other languages work fine?
Are there any errors in browser console?
 
Works on 2.1 for me. But when I went to upgrade it acted as if it were a new install? So I currently have two version of Code installed.
 
Request: Add dark theme to the new version :) Love this addon.
I'd actually like a way to set this per style. For example, I have both a light and dark style. The previous version of Code seemed to require to choose either, but not allow both.
 
We have upgraded to the latest Code, but now the old version lingers "ready to install" in our Add-ons screen. Could you please tell us which files to delete for Code 1.1.3 to be removed properly? Thanks!
 
I'm getting this error on 2.1... any thoughts?

Code:
TypeError: a is undefined[Learn More] core-compiled.js:75:331
    extend /forums/js/xf/core-compiled.js?_v=bca4dc63:75
    <anonymous> /forums/js/CMTV/Code/code-block.min.js?_v=bca4dc63:5
    <anonymous> /forums/js/CMTV/Code/code-block.min.js?_v=bca4dc63:2
 
Code:
ErrorException: [E_NOTICE] Undefined index: lang src/addons/CMTV/Code/XF/BbCode/Renderer/Html.php:36
Generated by: Unknown account May 8, 2019 at 10:56 PM
Stack trace
#0 src/addons/CMTV/Code/XF/BbCode/Renderer/Html.php(36): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/xxx/xxx/...', 36, Array)
#1 [internal function]: CMTV\Code\XF\BbCode\Renderer\Html->renderTagCode(Array, Array, Array, Array, Object(SV\LazyImageLoader\XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, Array, Array, Array, Object(SV\LazyImageLoader\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(SV\SignupAbuseBlocking\XF\BbCode\RuleSet), Array)
#6 src/XF/Pub/View/Forum/Rss.php(92): XF\BbCode\Traverser->render('Suppose, I have...', Object(XF\BbCode\Parser), Object(SV\SignupAbuseBlocking\XF\BbCode\RuleSet), Array)
#7 src/XF/Mvc/Renderer/AbstractRenderer.php(91): XF\Pub\View\Forum\Rss->renderRss()
#8 src/XF/Mvc/Renderer/Xml.php(74): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('XF:Forum\\Rss', '', Array)
#9 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Xml->renderView('XF:Forum\\Rss', '', Array)
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Rss), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Rss), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'rss')
#13 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#14 src/XF.php(390): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
Request state
array(4) {
  ["url"] => string(29) "/forums/-/index.rss?type=RSS2"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["type"] => string(4) "RSS2"
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom