I currently have a few CSS classes in my CSS stylesheets, for example, p.code1first to change a paragraph's font to Courier and indent the margin-left – code1next to do the same formatting, but without a margin-top.
Is there a way to apply these in the regular edit mode, without editing HTML by hand? I can go into source editor and add class="code1first" to a <p> tag, but is there a way to do this via macros or other keyboard shortcuts?
Or you can create a very simple user macro to do the same thing, allowing you to generate a more complex HTML structure if you need it.
You can get the Content Formatting for Confluence add-on (free) and use the "p" macro which has a class attribute in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks – I was looking at that add-on, and was wondering if it would do. I'll try it out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.