Org-mode (along with org-reveal) is an simple and easy to use method for creating documents and presentations in Spacemacs.
However, the default formatting for the code blocks isn't great. Here's how one can format code block:
C-c '
to open a new buffer with the source code in the block
M-m j =
to indent the whole buffer
, c
in the code block buffer to return the org-mode document (which also copies the indented code back.
Links: