I want to add the contents of an rc file to my question.when I paste it it looks fine in the editor but appears in my post with the formatting all wrong. on my end Ive used gedit and gvim and the results are the same. Any suggestions would be appreciated.


1 Answer 1


Do you mean it appears out of alignment and such?

You need to wrap long blocks of code-based files like rc files in code blocks. Paste your code as normal, then select the entire block of code, and click the button on the formatting bar that looks like {} - this will format your block of text in code formatting and make it look like vim or gedit or nano would render it.

  • thanks Thomas, your answer was very helpful.
    – Harry Busk
    Dec 28, 2018 at 2:16

You must log in to answer this question.

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