r/Tf2Scripts•
taigha

[PSA] Formatting your Code (Reddit Enhancement Suite)

Meta

Hi r/tf2scripts, this is just a short PSA about formatting your code within your posts. As you may have noticed, when you just paste raw code in, reddit formats it in an awkward way. Reddit only interprets text as code if there are 4 spaces at the beginning of every line. For example, when you paste code in without formatting it, it will come out like this:

alias +action "+jump;+right" alias -action "-jump;-right" bind tab "+action" bind enter "-action"

So, you could manually add 4 spaces to the beginning of every line (obviously a waste of time). However, when you use RES's "code" button, it will put 4 spaces in front of every line that you highlight, and it will format the previous code like this:

alias +action "+jump;+right" 
alias -action "-jump;-right"
bind tab "+action"
bind enter "-action"

Not only does RES provide this sweet feature that makes code more readable, but it adds to reddit IMMENSELY. You will wonder what you did without it! Please Upvote for Visibility.

RES download: http://redditenhancementsuite.com

Posted Jun 4, 2013, 10:09 PM UTC · edited

810
Loading comments…