Loading...
 
Skip to main content

syntax highlighting works OK for all langs in editor, but produced / viewed pages only work with "php", all other langs are mono-colored.

Status
Open
Subject
syntax highlighting works OK for all langs in editor, but produced / viewed pages only work with "php", all other langs are mono-colored.
Version
15.x
Category
  • Error
Feature
Syntax highlighter (Codemirror)
Resolution status
New
Submitted by
RadoS
Volunteered to solve
Lastmod by
RadoS
Rating
(0)
Description

Note: in the editor the highlighter for "java" is called "jade", but neither "java" nor "jade" work in the example:

Copy to clipboard
class Foobar { static { System.out.println("foobar.<cinit>"); } public final static String FOO_COMPILE_ZEIT_KONSTANTE = "foo"; public final static String FOO_LAUFZEIT_KONSTANTE = new String("foo"); public final static int BAR_COMPILE_ZEIT_KONSTANTE = 42; public final static int BAR_LAUFZEIT_KONSTANTE = new Integer(42).intValue(); } ​public class KonstantenTest { public static void main(String... _) throws Exception { System.out.println("Foobar.FOO_COMPILE_ZEIT_KONSTANTE = '" + Foobar.FOO_COMPILE_ZEIT_KONSTANTE); System.out.println("Foobar.BAR_COMPILE_ZEIT_KONSTANTE = '" + Foobar.BAR_COMPILE_ZEIT_KONSTANTE); System.out.println("Foobar.FOO_LAUFZEIT_KONSTANTE = '" + Foobar.FOO_LAUFZEIT_KONSTANTE); System.out.println("Foobar.BAR_LAUFZEIT_KONSTANTE = '" + Foobar.BAR_LAUFZEIT_KONSTANTE); } }
Workaround
I edited the homepage of the instance as example.
Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6214
Created
Tuesday 27 December, 2016 12:05:25 UTC
by RadoS
LastModif
Tuesday 27 December, 2016 12:14:58 UTC


Show PHP error messages