Skip to content

This is a tool to help create custom syntax highlighting for embedded CodePens.

License

Notifications You must be signed in to change notification settings

chasebank/Syntax-Highlighting-Builder-for-CodePen-Embeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syntax-Highlighting-Builder-for-CodePen-Embeds

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

  1. Fork this pen.
  2. Play with the colors to your heart's content. Have fun. Go crazy.
  3. Take a look at the URL in your browser's address bar. It should look something like http://codepen.io/USERNAME/pen/EKyGKN
  4. Add .css to the end, so it now looks like: http://codepen.io/USERNAME/pen/EKyGKN.css
  5. Highlight the entire url, and copy it to your clipboard.
  6. 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...

About

This is a tool to help create custom syntax highlighting for embedded CodePens.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published