I'm trying to write code snippets inline with prose text, much like the back ticks (``) in markdown
in Pages (version 5.6.1
). I have a "code" paragraph style, and a "body" paragraph style. Is there a way to intermix the two on the same line/paragraph?
Mac – Pages – multiple paragraph styles in a single paragraph
formattingmacpages
Related Question
- Question about defining custom paragraph styles in Pages
- Copy pasting italicized content in Pages
- MacOS – Pages keeps deleting empty lines when I change the font style
- In Pages, trying to bold everything that is inside {curly brackets}
- How to select a table style for table cells in pages
- Prepending section/subsection numbers to headings in Pages
- Don’t indent first paragraph in Pages
- Move a paragraph up or down in pages
Best Answer
You need to use a character style for code, and then perhaps use a "code block" paragraph style for code blocks that are, well, paragraphs. Think about this: if the code paragraph style is double spaced and your prose paragraph style is 1.5 spaced, which one "wins" when the break is mid-line?
To add a new Character Style in pages
(from https://help.apple.com/pages/mac/5.6/index.html?localePath=en.lproj#/tan7aaef6765)