inline syntax highlighting of CODE plugin
- Status
- Open
- Subject
- inline syntax highlighting of CODE plugin
- Version
- 17.x
- Category
- Feature request
- Feature
- Syntax highlighter (Codemirror)
- Resolution status
- New
- Submitted by
- drsassafras
- Lastmod by
- drsassafras
- Rating
- Related-to
- Description
Syntax highlighting for PHP (and presumably other languages) does not appear to work at first glance. Upon further inspection, its clear that syntax hiliting within the CODE plugin expects a HTML file, rather than an inline code example. I propose a reversal of behavior to expecting an inline example.
Using this code:
Copy to clipboard{CODE(colors="php")} // this is a comment basename($alpha); {CODE}
This is output:Copy to clipboard// this is a comment basename($alpha);
On the other hand using this code:
Using this code:Copy to clipboard{CODE(colors="php")} <?php // this is a comment basename($alpha); {CODE}
The highlighting is now enabled, but its not really the right code example any more:
Using this code:Copy to clipboard<?php // this is a comment basename($alpha);
Further reading:
https://groups.google.com/forum/#!topic/codemirror/j7CsgZgM01c
http://codemirror.net/mode/php/index.html- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 6357
- Created
- Wednesday 31 May, 2017 14:11:11 UTC
by drsassafras - LastModif
- Friday 02 June, 2017 09:36:42 UTC