Item13373: several %CODE%-blocks on one topic get rendered as plain verbatim block

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: DpSyntaxHighlighterPlugin
Branches: master
Reported By: RainerThierfelder
Waiting For:
Last Change By: RainerThierfelder
We installed Version 3.0 of the DpSyntaxHighlighterPlugin to fix another Bug (closing "tags" that were added (which has been fixed. Thanks.))

Sadly, we ran into a new Bug. The plugin works fine, if one uses only one %CODE% - blocks per topic. If one uses several (which is not uncommon in our wiki) in one topic, all blocks get rendered as verbatim blocks. At least in our foswiki installation ("This site is running Foswiki version v1.1.9, Release Foswiki-1.1.9, Plugin API version 2.2").

Let me know, if you need more information about our configuration.

-- RainerThierfelder - 14 Apr 2015

We have exactly the same issue.

-- RenMao - 09 Jun 2015

This is caused by the loader for brushes (syntax definitions for languages). If the same brush is used more than once in a page, the second CODE block thinks the brush is already loaded when it's actually not, and apparently that makes the script give up altogether.

Patch incoming.

-- JanKrueger - 30 Jul 2015

I believe this issue is resolved with the new release 3.01. You may have to refresh your browser cache after upgrading (F5 on an affected page should be enough).

-- JanKrueger - 30 Jul 2015

Unluckily, the issue did not get fixed. The example in the pluginpage gets not rendered as it should but instead looks like a normal verbatim-Block.

-- RainerThierfelder - 03 Aug 2015

I opened a new task for the (new) problem: http://foswiki.org/Tasks/Item13605

This one can stay closed (IMHO)

-- RainerThierfelder - 04 Aug 2015
 
Topic revision: r5 - 04 Aug 2015, RainerThierfelder - This page was cached on 19 Nov 2017 - 02:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License