Template:inlinecode

From MoodleDocs

{{{1}}}

The "inlinecode" template was created by Dominique Bauer on 2021-04-13. Thank you for not deleting it, at least please contact me at dominique.bauer@etsmtl.net before doing so.

Note: Important. For the
inlinecode
code to work, the paragraph it is in must be encloed in <p></p> tags.

Usage:

The inlinecode template formats code without changing the line spacing too much when used inside a paragraph.

It also allows the code to continue on the next line. For example:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Note: If the code includes an
=
sign, you can add
1=
right at the start of the code.
See MediaWiki:Templates for more details.