How to post code snippet

74 views
Skip to first unread message

Rob Jopling

unread,
Aug 14, 2020, 2:00:11 PM8/14/20
to TiddlyWiki
The answer to this might be obvious but please can someone explain how I post a code snippet in a box for comments.

Eric Shulman

unread,
Aug 14, 2020, 2:16:17 PM8/14/20
to TiddlyWiki
On Friday, August 14, 2020 at 11:00:11 AM UTC-7, Rob Jopling wrote:
The answer to this might be obvious but please can someone explain how I post a code snippet in a box for comments.

When you use the Google Groups editor to enter a message, the last button on the toolbar is "{ }"

Enter or paste your code snippet as normal text, then select it and press that button.

Note: GoogleGroups has an annoying habit of adding extra newlines to the code-formatted content, but you can edit those out after using the "{ }" button.

enjoy,
-e

Rob Jopling

unread,
Aug 14, 2020, 4:09:17 PM8/14/20
to TiddlyWiki
Thanks very much Eric

I had problems finding the {} but that was because I was using the new Groups editor. When I reverted to the classic Groups editor there they are!

Rob

Scott Kingery

unread,
Aug 14, 2020, 7:46:36 PM8/14/20
to TiddlyWiki
That is annoying! I just posted feedback to Google about it. Hopefully, some bot reads it lol.
Seems all you can do in the new editor would be to paste code and then highlight it and select Courier New as your font. Something like this random bit of code:

.tc-error-form {
font-family: sans-serif;
color: #fff;
z-index: 20000;
position: fixed;
background-color: rgb(255, 75, 75);
border: 8px solid rgb(255, 0, 0);
border-radius: 8px;
width: 50%;
margin-left: 25%;
margin-top: 4em;
padding: 0 2em 1em 2em;
}
Reply all
Reply to author
Forward
0 new messages