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
|
|
68416
|
Tue Sep 6 14:02:56 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.1.1-3f311c5 | Re: Highlight code? | 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
|
|
|
|
68415
|
Tue Sep 6 13:45:55 2016 |
| Daniel Sajdyk | daniel.sajdyk@gmail.com | Question | Windows | 3.1.1-3f311c5 | Re: Highlight code? | 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
|
|
|
68414
|
Tue Sep 6 13:41:32 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.1.1-3f311c5 | Re: Highlight code? | 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
|
|
68413
|
Tue Sep 6 13:35:05 2016 |
| Daniel Sajdyk | daniel.sajdyk@gmail.com | Question | Windows | 3.1.1-3f311c5 | Highlight code? | Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk |
Draft
|
Tue Sep 6 13:29:03 2016 |
| Daniel Sajdyk | daniel.sajdyk@gmail.com | Question | Windows | 3.1.1-3f311c5 | Hilight code | Hello :)
Is there any way to highlight code (for example php, SQL) in logs entries?
Best Regards
Daniel Sajdyk |
68411
|
Mon Sep 5 10:31:02 2016 |
| Stefan Ritt | stefan.ritt@psi.ch | Info | All | 3.1.2 | New elog version 3.1.2 | A new version 3.1.2 of elog has been released today and can be retrieved through the normal download section. Since it fixes some vulnerabilities, it is recommended to update to this version.
Stefan |
68410
|
Thu Sep 1 09:03:51 2016 |
| Antonio Bulgheroni | antonio.bulgheroni@gmail.com | Question | Windows | 3.1.1 | Re: Image source url missing | The conflicting option is "Preview attachments". When this is turned off (set to 0), images are not properly uploaded. Could you please confirm it also on your side?
Antonio Bulgheroni wrote: |
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.
Thanks for your help,
Antonio
Andreas Luedeke wrote: |
Yes, I can confirm that the image button upload does work in the Linux Demo logbook (Windows 10 client host, Firefox 47.0 client) and it still does not work in this Forum.
Antonio Bulgheroni wrote: |
Andreas, there is something strange. It looks the problem is "configuration dependent" because I tried to upload a picture on the Linux Demo logbook and there it works. Can you confirm this too?
Andreas Luedeke wrote: |
Okay, I can confirm this bug: with Windows 10 using Firefox 47.0 the dialog hangs as soon as I press "Send it to the server". When it returns, it did not upload anything. That is why it asks for URL after pressing OK.
Quick fix: just attach the image and use the URL of the attachment.
I did it here: 
Cheers
Andreas
Antonio Bulgheroni wrote: |
Dear Stefan, this is to confirm that also from my personal laptop from home I have the same issue. No pictures uploaded to this server from windows 10.
Which OS & Browser are you using?
thanks,
Antonio
Antonio Bulgheroni wrote: |
Dear Stefan, thanks for your answer.
I tried to add a picture to this reply but I got the same error message with both Firefox and Chrome.
For sure the pictures were not included in the message, but I have the feeling they were not even uploaded to the server.
(I'm on Windows 7)
Thanks for your help,
Antonio
Stefan Ritt wrote: |

I entered this image exactly as you described. When I click OK, the dialog disappears. Can you check if it works for you on this server? Maybe with different browsers?
Stefan
Antonio Bulgheroni wrote: |
Can anyone help me? I'm really clueless 
Thanks in advance,
Antonio
Antonio Bulgheroni wrote: |
Dear all, sorry for asking you another question, but today after I finally recovered all my logbook entries, I updated to elog 3.1.1 and now I have a problem uploading images.
This is what I do:
- Click on the insert "Image" button in the editor toolbar
- In the popup window I select the picture I want to upload and then press "Send to server". I see the file appearing among the attachments at the bottom of the message.
- I click OK, but the popup complains that the Image Source URL is missing. Indeed when I switch to the other tab the URL field is open.
I have tried on your demo logbook and after the image is sent to the server, the URL field is automatically filled.
What am I doing wrong? With 2.9.2 it was working normally.
Thanks again and best regards
Antonio
|
|
|
|
|
|
|
|
|
|
|