Formatting Whitespace on Cards?

40 views
Skip to first unread message

jimde...@gmail.com

unread,
Oct 24, 2019, 5:37:05 AM10/24/19
to mnemosyne-proj-users
I would like to format a snippet of code with indentation, but simply typing a tab or extra spaces at the beginning of a line doesn't work. Is there an alternative?

What I get:
for (x=1;x<10;x++) {
doSomething(x);
}

What I want :
for (x=1;x<10;x++) {
   doSomething(x); <-- indented
}

Peter Bienstman

unread,
Oct 24, 2019, 5:58:31 AM10/24/19
to mnemosyne-...@googlegroups.com

Hi,

 

Mnemosyne’s cards are just html, so you use e.g.

 

&nbsp;&nbsp;doSomething

 

Cheers,

 

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 view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/67594c79-e7c4-4b71-a634-072e6ba083e4%40googlegroups.com.

stefan....@receipt-bank.com

unread,
Nov 7, 2019, 9:09:46 AM11/7/19
to mnemosyne-proj-users
The best way to do this is to use the "<pre>" html tag and to align them left. Try this:
<pre align="left">

for (x=1;x<10;x++) {
   doSomething(x); <-- indented
}
</pre>
Reply all
Reply to author
Forward
0 new messages