Forum Discussion
JCCaianiello-c1
6 years agoCommunity Member
Code Snippet - Learning How To
Hi team,
I would like to know more about Code Snippets. Can someone refer me to a resource that will help me learn how to use Code Snippets in my Rise courses?
/jc
SeanCampbell-73
3 years agoCommunity Member
Hi Lea, I know this is an old thread. However, I would like to find out if you have code highlighting as part of paragraphs on your product roadmap? For example, if you look at how Slack does it:
joshh-AS
3 months agoCommunity Member
I figured out how to do it!! I provided a slightly expanded set of instructions in this forum post (linked here), but here's the gist.
Step 1: highlight some text and click on the "Math Equation" button
Step 2: paste in some simple LaTeX, change colors as needed, and edit the code snippet.
Step 3: enjoy an in-line code snippet!
Result:
LaTeX sample:
\definecolor{mybg}{rgb}{0.95, 0.95, 0.95}
\definecolor{mytext}{rgb}{0.1, 0.1, 0.6}
\colorbox{mybg}{\textcolor{mytext}{\texttt{inline code here}}}
Related Content
- 10 months ago