質問

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)???

役に立ちましたか?

解決

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?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top