I'm importing html code into a confluence page using the HTML macro. Can I modify the html code to display code examples so they display onscreen as if contained inside a code block?
You could add custom html in Confluence Admin and add a reference to a javascript syxtax highlighter such as this one ...
http://alexgorbatchev.com/SyntaxHighlighter/
Then it is just a matter of formatting your html in the html macro to work with the syntax highlighter. Is this what you are looking for?
For me, it's all about being able to embed external files at page-load time, so that the files can sit in a separate repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I, too, would like to know if this is possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you ever figure this out? We're looking to do the same: create and maintain technical documentation in Confluence, and embed code snippets from sample code that is either stored as an attachment, or stored externally (e.g. in GitHub or similar)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you displaying a remote page, or inline HTML?
You could likely do this with some custom CSS to modify the html presentation. https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.