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
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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)

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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.