Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 14:51:19 2016
|
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre> |
Re: Highlight code?, posted by Stefan Ritt on Tue Sep 6 15:29:22 2016
|
In the HTML editor, you can select the code text, then select from the "Styles" drop-down the style "Computer Code", and on the "Normal"
drop-down the formatting "Formatted". This puts the code in <pre> and <code> tags, so you don't have to manipulate
HTML directly. |
Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 22:18:29 2016
|
Ok. Thanks a lot :)
Stefan
Ritt wrote:
In the HTML editor, you can select the code text, then select from the |
Re: Highlight code?, posted by Aaron James Long on Mon Dec 12 13:35:16 2016
|
Can I ask for some clarification; I would like to include code highlighting for some computational students who will be making use of ELOG.
In the example you showed, my understanding is that you included a "Bottom text =... " entry in the forums elog config. This included
the bare minimum remote call outlined by the highlightjs site. Can you clarify (as I'm having issues setting it up) should the "Bottom text=..." |
Re: Highlight code?, posted by Stefan Ritt on Mon Dec 12 13:48:41 2016
|
All I did was this:
Bottom Text = <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css"><script
src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();</script>
|
Re: Highlight code?, posted by Aaron James Long on Mon Dec 12 14:04:32 2016
|
Thanks for the quicky reply Stefan. Yes, I had inut the same string! My error was not restarting the server; I've done this and code highlighting
works fine.
Stefan |
drop-down list not working, posted by Sara Vanini on Mon Nov 13 12:58:41 2017
|
Hi,
after ubuntu 16 system upgrade, elog version (3.1.1-1-1) on firefox version 56.0+build6-0ubuntu0.16.04.2 , the drop-down menus (Styles, Font,
Size, etc) don't work anymore. |
Possible bug in elogd execute_shell, posted by Nigel Warr on Fri Feb 26 08:47:22 2016
|
I was just playing around with gcc6's new feature for warning about misleading indentation (which can often hide real bugs) and I think it found
one in elog-3.1.1-1 at src/elogd.c:22538. Here there is an if statement, which looks as though it should be inside a loop, but it isn't.
The code is: |