I tried to save a code block ({code}somecode here{code}) using the api. It saved the plaintext to confluence, not a code block. How can I save a code block? A sample will be much appreciated.
btw, the confluence version is 5.4.4
You'll need to use the Storage format instead of wiki format. Examples can be found in the official documentation here: https://confluence.atlassian.com/doc/code-block-macro-139390.html#CodeBlockMacro-Storageformatexample
You would probably end up using the 1st or 2nd example from the table, I would imagine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.