Styled <code> text (including in Rich Text)

Have a <pre> element where you can type in text and it will be styled like code. The rich text editor should also support writing code snippets, with custom code highlighting/styling. 

  • Jason Zucchetto
  • Jan 11 2017
  • Reviewed
  • Michael Wells commented
    3 Sep 06:07am

    You can do this using an HTML embed and markdown, with a bit of script. Setup is easy and you get a lot more control over the resulting code display & styling.

    Should be possible to do code formatting too, the markdown processors have a lot of features.

    https://discourse.webflow.com/t/using-markdown-and-html-tables-in-webflow/213494/5

  • Sarim Khalid commented
    24 Jul 07:50pm

    I really want to/need to write articles related to software engineering so this feature will make this possible!

  • Georgia Rust commented
    9 Jun 11:24pm

    This is causing our team to build our blog elsewhere because most of our articles are engineering related and embedding code snippets is something we do in almost every post.

  • Scott Sickles commented
    1 Jun, 2021 02:19pm

    This would be a huge add. Anyone writing a technical blog post will need this.

  • Brian Vallelunga commented
    23 Dec, 2020 09:15pm

    Would really love to see this! Please prioritize!!

  • Stefan Kojic commented
    2 Apr, 2020 03:50pm

    Give priority to this!!!!!!!!

  • Ashwin Kumar commented
    10 Jul, 2019 07:25am

    Lot's of people looking for the new update for alarm clock in windows 10 and so many new users wants to know how  turn off alarm windows 10 for all questions there are only one homepage which will share information for free of charges.

  • Robert Moore commented
    30 Apr, 2019 06:57pm

    Really need this

  • Paul Jauregui commented
    18 Dec, 2018 02:33pm

    I'm obsessed with Webflow. We migrated our company website (praetorian.com) to Webflow during a redesign two years ago. Not having code syntax highlighting or the ability to insert custom code embeds within a blog post's body content is the only reason I haven't migrated our company's blog. Huge pain point.

  • Casey Schorr commented
    6 Sep, 2017 06:03pm

    We need this for documentation! Trying to use webflow for documentation, help center, case studies, etc - really need the ability to style as code.

  • Jonny Hill commented
    14 Jun, 2017 04:21pm

    Many of our blog posts need this functionality. 

  • Dmitry Ratnikov commented
    4 Feb, 2017 06:44am

    Yes please!

  • +51