Domanda

Possible Duplicate:
How do I format my code blocks?

This is my very first post on SO and I have a quick question... In order to post a code block it says to indent by four spaces. Does this mean I have to indent every line of code 4 spaces? I feel like I'm missing something here. What's the best way to just copy and paste some code (java and xml) into a post and have it blocked and formatted (without having to edit each and every line I've pasted)???

È stato utile?

Soluzione

Paste the code into the text area then highlight the code and click on the Code Sample {} button.

See How do I format my code blocks?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top