Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 438 of 808  Not logged in ELOG logo
    icon2.gif   Re: Image source url missing, posted by Antonio Bulgheroni on Thu Sep 1 08:47:55 2016 
This is another piece of information to help in the debugging. To my standards logbooks, I have added the "demo". On the demo I can upload
pictures while I can't on the other logbooks.

This is indicating that the bug has something to do with the logbook configuration other than with the editor or the image upload plugin.
    icon2.gif   Re: Highlight code?, posted by Stefan Ritt on Tue Sep 6 13:41:32 2016 
You can manually highlight code,
but there is no automatic language parser.




Daniel
    icon2.gif   Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 13:45:55 2016 
I thought so.

One  more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....

I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
    icon2.gif   Re: Highlight code?, posted by Stefan Ritt on Tue Sep 6 14:02:56 2016 
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C
code:


#include <stdio.h>
int main()
{
   // printf() displays the string inside quotation
   printf("C Programming");
    icon2.gif   Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 14:51:19 2016 screen.png
Looks like it works :)

Code need to be put in tags:

<pre><code class="sql">...</code></pre>
    icon2.gif   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.
    icon2.gif   Re: error message "Command Config is not allowed" after registering, posted by Mark Bergman on Tue Sep 6 20:09:07 2016 elogd.c.patch
 




Mark
Bergman wrote:



After registering, elog displays a page with the message:
    icon2.gif   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
ELOG V3.1.5-3fb85fa6