|
|
The problem is not about the button. I do not need the button, though the button works with RokPad too.
I've added the code manually this is why I use RokPad to edit everything in code view. Please see screenshot: take.ms/YX3Jo . As you see the syntax is correct but the plugin doesn't have coloring syntax in front-end. |
The administrator has disabled public write access.
|
|
Hello, the problem lies in the fact that the plugin/module for syntax highlighting and tiny MCE doesn't work when a CRLF code is detected. When I use </ br> instead of CRLF for a new line, the highlighting works, if I omit to change the linebreak or new line to </ br> the highlighting doesn't work (joomla 3.6). Also & doesn't show up as & not even with & (in a comment for asm programs).
Linenumbering works but isn't quit wel shown when the linenumbers exceeds 3 digits (aka 100 and further) but that must be a template issue (protostar). |
The administrator has disabled public write access.
|
|
Perhaps I found a solution for joomla 3.6. I've replaced one line in edit.php (directory /components/com_scriptcodehighlighter/views/scriptcodehighlighter/tmpl/edit.php) line 73.
I've changed it this way: // return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); return (str + '').replace((\r\n|\n\r|\r|\n)/g, '$1' + '<br />+ '$2'); and now it works when I press enter after each line. I will try it again with the previous (original) return operation but for the moment I'm a happy guy ![]() |
The administrator has disabled public write access.
|
|
my last update:
changed: return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); to: return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br />' + '$2'); I still need to press enter behind each line when I copy paste code in tinyMC but the code highlighting works. |
The administrator has disabled public write access.
|
|
Thanks for that update. i was busy with some other projects and as this was working for some users and i was not able to replicate the issue so I was helpless. I now understand it and will try to improve upon it. thanks.
agguro wrote: my last update: changed: return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); to: return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br />' + '$2'); I still need to press enter behind each line when I copy paste code in tinyMC but the code highlighting works. |
The administrator has disabled public write access.
|
|
![]() |
kontera Ads
Price $0.00 |
![]() |
Best Answers
Price $0.00 |
![]() |
Code Seller
Price $0.00 |
![]() |
Stop User Edit
Price $0.00 |
![]() |
Event management
Price $0.00 |