Forum Discussion
How to customize text block in Rise 360 to show code
Is what you're looking for covered in the Code Snippet block type? It's in the Multimedia block group.
You don't get any formatting control in the code, and it doesn't do semantic highlighting, but it does display with a Courier font and a grey background.
Alternatively, you could get more control with a Custom Block, but that doesn't seem to have a Courier font as an option and can't use web fonts. You could do the semantic highlighting there. This breaks responsiveness.
Or, maybe you could create the CSS formatted code example externally and then insert it using one of the new Code blocks. That's not very elegant, breaks responsiveness, but might give you the most flexibility. I haven't tried it, but it seems logical.
Wow, thank you. I hadn't found that in the multimedia section, but that will do it. I had tried the Code block but that definitely didn't seem the most elegant solution. Appreciate the help, thanks DavidSwaddle​
Related Content
- 3 months ago
- 3 months ago
- 3 months ago