Hi! I am working on the Technical Documentation project. My documentation is about
DITA XML/ Markdown syntax. I tried putting some DITA snippets inside the html <code> tag and VS code parses it as regular code. So I tried putting a <pre> tag around the DITA and that did not solve the problem. Here are the snippets.
I have figured out with using special characters how to get the code snippets to display, however I am not getting the whitespace I need to indent some of the code snippet lines where they are nested. to render in the output.
If you want to show us your code here then you need to wrap it with three backticks (three backticks on a line by itself, then your code below, then three more backticks after your code on a line by itself).
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.