syntax highlighting and formating

65 views
Skip to first unread message

naz...@gmail.com

unread,
Nov 2, 2014, 2:14:59 PM11/2/14
to mnemosyne-...@googlegroups.com
Hi guys, I'm studding some CS concepts and use Mnemosyne and it works great. However I have issue with code formatting and highlighting. I use <code> and <pre> tags but its not ideal. I'm pasting lisp code and it looks like a mess. Am I missing something? What the best solution for that?

Thanks,
nazgob

Peter Bienstman

unread,
Nov 2, 2014, 11:56:21 PM11/2/14
to mnemosyne-...@googlegroups.com
Hi,

This is more a html question than a Mnemosyne question: Mnemosyne uses a little webkit browser to display the cards, so it should be standard html.

If you find some html which displays fine outside Mnemosyne, it should also work inside Mnemosyne.

Cheers,

Peter

dist...@gmail.com

unread,
May 24, 2019, 12:23:55 AM5/24/19
to mnemosyne-proj-users
This is an old thread but I thought I'd put here what I've been doing so the next person who finds this thread can reference it.

Basically, I found a website that formats code as syntax-highlighted HTML: http://hilite.me/. I paste my code there and then copy/paste the output into Mnemosyne and it displays the HTML perfectly.

Unfortunately, there is a bug in QT that disallows copying from Mnemosyne, which is frustrating as I sometimes want to copy/paste code _from_ Mnemosyne to a text editor (I often use this for test cases) and this does not work. You can copy/paste from within edit mode in Mnemosyne but the code is wrapped in HTML so is unusable.

Peter Bienstman

unread,
May 24, 2019, 2:36:03 AM5/24/19
to mnemosyne-...@googlegroups.com
Thanks for the heads up!

Peter
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/cff43264-83e9-4e8a-8020-c775e61b332c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael DiStefano

unread,
May 24, 2019, 2:23:17 PM5/24/19
to mnemosyne-...@googlegroups.com
Any idea on what's going on with QT and copy/paste on Windows? And, more importantly, and ideas for a fix or workaround?
> You received this message because you are subscribed to a topic in the
> Google Groups "mnemosyne-proj-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mnemosyne-proj-users/6knPDJX3sOs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to
> mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/1612472da7ff4f52af8e8ab5b1955bc5%40xmail101.UGent.be.

Peter Bienstman

unread,
May 25, 2019, 12:06:36 AM5/25/19
to mnemosyne-...@googlegroups.com
Every release I update the Qt version, hopefully that helps...

Peter



From: Michael DiStefano <m...@distefano.me>
Sent: Friday, 24 May 2019 20:23
To: mnemosyne-...@googlegroups.com
Subject: Re: [mnemosyne-proj-users] Re: syntax highlighting and formating

Reply all
Reply to author
Forward
0 new messages