This is a tool to help create custom syntax highlighting for embedded CodePens.
More details on my CodePen blog here, or quick instructions below:
Instructions
- Fork this pen.
- Play with the colors to your heart's content. Have fun. Go crazy.
- Take a look at the URL in your browser's address bar. It should look something like
http://codepen.io/USERNAME/pen/EKyGKN
- Add .css to the end, so it now looks like:
http://codepen.io/USERNAME/pen/EKyGKN.css
- Highlight the entire url, and copy it to your clipboard.
- Head over to your Embed Theme Builder. Whether you're editing an existing theme, or creating a new one, in the bottom left hand corner, you'll find a field labeled "Custom CSS". Paste that copied URL into the field and save the theme.
The .css link is live, which means you can return to your forked pen and make further edits, and the saved changes will automatically propagate to all pens using that theme.
Note: this is using LESS with @
variable syntax. Easily changable to SCSS...