How can i do inline code rather than code blocks

95 views
Skip to first unread message

Eddie Wassef

unread,
Apr 9, 2019, 11:41:37 AM4/9/19
to js-code-prettifier
Hi there:

I am trying to add an inline piece of code (in markdown terms its a single `)... rather than a whole code block (think 3 ``` in markdown terms).. 

Is there a way to do that, or should i just wrap it in <code>?

thanks

Mike Samuel

unread,
Apr 9, 2019, 11:56:43 AM4/9/19
to js-code-prettifier
Yes.  <code class=prettyprint>...</code> will do what you want.

If you want to avoid escaping body content, you might have some luck with <xmp style="display:inline; white-space: normal" class="prettyprint">...</xmp>, but I don't know how much CSS tweaking you'd need to do.

--
You received this message because you are subscribed to the Google Groups "js-code-prettifier" group.
To unsubscribe from this group and stop receiving emails from it, send an email to js-code-prettif...@googlegroups.com.
To post to this group, send email to js-code-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/js-code-prettifier.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages