ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68417
|
Tue Sep 6 14:51:19 2016 |
| Daniel Sajdyk | like daniel.sajdyk@gmail.com | Question | Windows | 3.1.1-3f311c5 | Re: Highlight code? |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
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");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
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:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
Attachment 1: screen.png
|
|
68418
|
Tue Sep 6 15:29:22 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.1.1-3f311c5 | Re: Highlight code? |
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.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
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");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
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:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
68420
|
Tue Sep 6 22:18:29 2016 |
| Daniel Sajdyk | daniel.sajdyk@gmail.com | Question | Windows | 3.1.1-3f311c5 | Re: Highlight code? |
Ok. Thanks a lot :)
Stefan Ritt wrote: |
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.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
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");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
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:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
|
68421
|
Fri Sep 9 10:31:15 2016 |
| christian | c_grebing@web.de | Question | Windows | 3.1.2 | Windows service settings |
Hello,
I've been successfully using elog as a daemon since several years on a Linux machine. For some reasons recently I had to switch to a Windows 7 machine. Here, setting up the elog daemon doesn't work for me:
(a) running the command:
"...\ELOG\elog.exe" -c "...\ELOG\elogd.cfg"
in a windows shell works perfectly fine - logbook is up and running as set up in the cfg-file.
(b) However, starting the windows service manually (start->control panel->system and security->administrative tools->services) that was set up automatically during installation of elog leads to an error message:
"Error 1053: The service did not respond to the start or control request in a timely fashion"
From the service settings I can verify that the service is running exactly the same command that works in (a).
Could someone please share the windows service settings? Thanks in advance.
Cheers, Christian |
68422
|
Fri Sep 9 11:33:04 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.1.2 | Re: Windows service settings |
These problems are usaully related to user rights. Try starting the service under a different (maybe admin) user.
Stefan
christian wrote: |
Hello,
I've been successfully using elog as a daemon since several years on a Linux machine. For some reasons recently I had to switch to a Windows 7 machine. Here, setting up the elog daemon doesn't work for me:
(a) running the command:
"...\ELOG\elog.exe" -c "...\ELOG\elogd.cfg"
in a windows shell works perfectly fine - logbook is up and running as set up in the cfg-file.
(b) However, starting the windows service manually (start->control panel->system and security->administrative tools->services) that was set up automatically during installation of elog leads to an error message:
"Error 1053: The service did not respond to the start or control request in a timely fashion"
From the service settings I can verify that the service is running exactly the same command that works in (a).
Could someone please share the windows service settings? Thanks in advance.
Cheers, Christian
|
|
68423
|
Fri Sep 9 13:17:36 2016 |
| christian | c_grebing@web.de | Question | Windows | 3.1.2 | Re: Windows service settings |
Hi Stefan,
you were right - running the service by an authorized user solved the problem.
Thanks a lot.
Cheers, Christian
Stefan Ritt wrote: |
These problems are usaully related to user rights. Try starting the service under a different (maybe admin) user.
Stefan
christian wrote: |
Hello,
I've been successfully using elog as a daemon since several years on a Linux machine. For some reasons recently I had to switch to a Windows 7 machine. Here, setting up the elog daemon doesn't work for me:
(a) running the command:
"...\ELOG\elog.exe" -c "...\ELOG\elogd.cfg"
in a windows shell works perfectly fine - logbook is up and running as set up in the cfg-file.
(b) However, starting the windows service manually (start->control panel->system and security->administrative tools->services) that was set up automatically during installation of elog leads to an error message:
"Error 1053: The service did not respond to the start or control request in a timely fashion"
From the service settings I can verify that the service is running exactly the same command that works in (a).
Could someone please share the windows service settings? Thanks in advance.
Cheers, Christian
|
|
|
68424
|
Mon Sep 12 18:44:09 2016 |
| Chris Smyth | chris.smyth@comcast.net | Question | Windows | ELOG V2.7.8-229 | Body Width |
How do I make this section Wider or Shorter in the 2.7.8 version?
Maybe I did something to make it shorter? ELCode shows as a full box but plain txt is very short box. |
68425
|
Mon Sep 12 19:10:03 2016 |
| Chris Smyth | chris.smyth@comcast.net | Question | Windows | ELOG V2.7.8-229 | Re: Body Width |
> How do I make this section Wider or Shorter in the 2.7.8 version?
> Maybe I did something to make it shorter? ELCode shows as a full box but plain txt is very short box.
Never mind Found it
In Global set
Message Width = 95 |