Loading...
 
Skip to main content

Category: Syntax highlighter (Codemirror)

Wiki Syntax highlighter (currently Codemirror)
Syntax highlighter (Codemirror)
Show subcategories objects

Name Type
Searching for content highlights the chosen language in search term text as well
Current behavior:
When searching for a term and selecting a language (for example German (DE)) the search results will highlight the searched languages letters (in our example "DE") as well.

{img fileId="1128" thumb="box"}

Expected behavior:
The search results only highlight the searched term and not the chosen language as well.

Step to reproduce:
Search any term in using the search module and the language filters.

{img fileId="1129" thumb="box"}

Possible workaround:
Disable the whole highlighting using CSS.
tracker item
syntax highlighting works OK for all langs in editor, but produced / viewed pages only work with "php", all other langs are mono-colored.
Note: in the editor the highlighter for "java" is called "jade", but neither "java" nor "jade" work in the example:

{CODE(java)}
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);
}
}
{CODE}
tracker item
Upgrade CodeMirror to latest stable version
We are still at 2.25:
http://sourceforge.net/p/tikiwiki/code/46914/tree/trunk/composer.json#l14

The updated zip is at:
http://codemirror.net/codemirror-3.16.zip
tracker item
Upon select text and click toolbar plugin, CodeMirror activates itself and instead of insert at cursor, we get insert at top
{kaltura id="1_5ahsbgoc"}
tracker item
Web-based source code editor
wiki
Wiki Edits in 18.x-20.x with mobile devices duplicate some trailing chars from strings when Codemirror is on
Since I upgraded some site to Tiki 18.x (svn), I can't edit properly wiki pages through the mobile phone (using Chrome on Android, in case it matters).

Once the page is open for edition, copy & pasting some url from elsewhere (for example) get your url appended with some extra text each time you click elsewhere in the same edit, or even if you just hit at the save button afterwards.

If you disable codemirror highlighter for the time being in that edition, then no extra text is prepended and you can save as expected.
---
Similar issue still present in 20.x{sign user="xavi" datetime="2019-07-06T17:58:57+00:00"}

Reproduced with an android based device (using chrome) in:
http://xavi-9794-6662.show2.tikiwiki.org/tiki-index.php?page=HomePage
visit with mobile device, enable codemirror highlighter, and attempt to edit the text.
tracker item
With Codemirror enabled or toggled Admins can't edit text-area field on doc.t.o
With Codemirror enabled or toggled Admins can't edit text-area field on doc.t.o.

Go to doc.tiki.org, log as admin(s), go to look & feel, go to customization try to edit the code in the HTML head tag with or without codemirror enabled.

''Enable to upload a file on dev.t.o so I copied it somewehre else.''
https://streamable.com/e/asi284?loop=0
tracker item
  • 1
  • 2 (current)
  • »
Show PHP error messages