What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

Possible Duplicate:
How do I format my code blocks?

I know that if a line is preceded by 4 spaces it is treated as code. Is there a quicker way to enter multi line code? It is quite difficult to go to each line of code and add 4 spaces for quite a lot of lines.

is there something equivalent to the vbulleting forums where you used [code] [/code] tags?


share|improve this question

marked as duplicate by Shadow Wizard, ChrisF, Cody Gray, Sathya, Lance Roberts Aug 7 '11 at 16:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Never thought I'd hear someone wishing for a "forum"-style features... – Cody Gray Aug 7 '11 at 11:20

1 Answer 1

up vote 5 down vote accepted

You can type the code normally, then highlight the block and Ctrl+K it:

code 1;
code 2;
code 3;

This is also available on the toolbar as the code {} button.

share|improve this answer
Brilliant! i cant believe i never knew about this. Thanks! – ziggy Aug 7 '11 at 10:14

Not the answer you're looking for? Browse other questions tagged .