Jump to content

Diplay programming code examples, with text formatted with appropriate colors

Recommended Posts

Site URL: https://wellsr.com/vba/2021/excel/vba-range-find/

I am looking for information about how to display a block of formatted programming code such as VBA (Visual Basic for Applications) into a blog post that is formatted with all the colors that a developer would see if they were editing VBA code within an editor that auto-formats the code for them.  An example of a website with blocks of code displayed is https://wellsr.com/vba/2021/excel/vba-range-find/

I would be fine with using any extensions that help facilitate this, or WYSIWYG text editors that allow me to apply color to the fonts manually, and then paste it into a blog post as a custom paragraph box that has some background fill and a border to convey it is a block of sample code for the reader to copy and paste into their projects.

Overall I am looking for whether its possible to do on SquareSpace (I assume it is), and if so, direction of how to best approach it.

 

 

Link to comment
1 hour ago, RaulVelasquez said:

Site URL: https://wellsr.com/vba/2021/excel/vba-range-find/

I am looking for information about how to display a block of formatted programming code such as VBA (Visual Basic for Applications) into a blog post that is formatted with all the colors that a developer would see if they were editing VBA code within an editor that auto-formats the code for them.  An example of a website with blocks of code displayed is https://wellsr.com/vba/2021/excel/vba-range-find/

I would be fine with using any extensions that help facilitate this, or WYSIWYG text editors that allow me to apply color to the fonts manually, and then paste it into a blog post as a custom paragraph box that has some background fill and a border to convey it is a block of sample code for the reader to copy and paste into their projects.

Overall I am looking for whether its possible to do on SquareSpace (I assume it is), and if so, direction of how to best approach it.

 

 

Would this help?

How to use highlight.js (highlightjs.org)

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.