Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnydoc, etc: RStudio-style different background colors #100

Open
sikaiser opened this issue Sep 15, 2018 · 0 comments
Open

dnydoc, etc: RStudio-style different background colors #100

sikaiser opened this issue Sep 15, 2018 · 0 comments

Comments

@sikaiser
Copy link
Contributor

This is not an issue but a tip / suggestion for something that could be added to the readme:

Personally I really like how in RStudio (when working with rmarkdown) the different blocks (code vs markdown) have different background colors. It helps a lot in recognizing the structure of the file I'm working on.

A similar effect can be achieved in Atom by adding something along the lines of the following code to your personal styles.less (in the /.atom directory). This example is for a file using stata-dyndoc-md and would give all the fenced code blocks the background color #373b41.

atom-text-editor {
	.line {
		position: relative;

		.syntax--fenced.syntax--code.syntax--md::before {
			background-color: #373b41;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			content: '';
			display: block;
			z-index: -1;
		}
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant