paint-brush
How To Add Code Blocks in Webflow CMS with Language Highlightingby@sebastian-scholl
4,216 reads
4,216 reads

How To Add Code Blocks in Webflow CMS with Language Highlighting

by Sebastian Scholl4mSeptember 1st, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The team at 8base decided to migrate our blog from Medium to Webflow CMS. Webflow has no support for code blocks, so we had to come up with a solution. Using Highlight.js, you can style code to reflect a preferred text editor theme easily. The script tag loads the Highlight.js library and the first link tag loads. The second one imports the [Atomomom] One Light editor for all supported languages. This allows us to use it in any language that we choose to add.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How To Add Code Blocks in Webflow CMS with Language Highlighting
Sebastian Scholl HackerNoon profile picture
Sebastian Scholl

Sebastian Scholl

@sebastian-scholl

Professional 🤹🏼‍♀️

Learn More
LEARN MORE ABOUT @SEBASTIAN-SCHOLL'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Sebastian Scholl HackerNoon profile picture
Sebastian Scholl@sebastian-scholl
Professional 🤹🏼‍♀️

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here