Nice, thanks for the fast implementation. Does this website actually run on GetSimple?? If so we could use I18N search , which is pretty good imho. For syntax highlighting I know highlight.js is pretty good, and also provides a wide array of themes. A while ago I made a Codehighlight bookmarklet using this lib that highlights all
Anyhow, the lib automatically detects the code language, so no need for separate
Including it would be as simple as doing:
I know of one issue with the lib: sometimes it doesn't highlight correctly when multiple languages are in one snippet (eg JS
If you mean simply providing feedback & suggestions on the forum, yes, but afaik I can't 'copy' this website to test it locally (for search algorythms & bb codes)..
Btw I just noticed something: when someone edits a previous post in a thread, the 'latest reply author' of the thread is set to this person (while no new reply has been posted). If this is intentional; ignore
<pre>
tags (which unfortunately does not work here because code blocks are simple <div>
s.Anyhow, the lib automatically detects the code language, so no need for separate
[php]
& [code]
blocks, all fully front-end.Including it would be as simple as doing:
Code:
hljs.configure({useBR: true});
$('div.codeblock code').each(function(i, block) {
hljs.highlightBlock(block);
});
I know of one issue with the lib: sometimes it doesn't highlight correctly when multiple languages are in one snippet (eg JS
<script>
tags), but I'd need to test that more rigorously. (2015-04-30, 10:54:47)shawn_a Wrote: You want to volunteer to figure this shit out ?
Better search, mybb codes etc
If you mean simply providing feedback & suggestions on the forum, yes, but afaik I can't 'copy' this website to test it locally (for search algorythms & bb codes)..
Btw I just noticed something: when someone edits a previous post in a thread, the 'latest reply author' of the thread is set to this person (while no new reply has been posted). If this is intentional; ignore