Hello, how to add source code in WikiHow? For some text, it’s very important to preserve formatting like line breaks and spaces. Wikipedia has a <code> tag to address this issue, but WikiHow hasn’t. How can I add code in my article? edited by sohmc to correct the display
OK, I found out how to do it, sorry. It’s possible by using the <source> tag, like so: <source lang=“text”>Pre-formatted text</source>
We have a template that can be used for this purpose as well: http://www.wikihow.com/Template:CodeBox