You are welcome to customize your user-specific preferences on the Data Server (including RStudio). I recommend some non-default customization in RStudio below.
Set tab width to 4:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.