Galaxie Blog uses a customized version of Prism.js to allow blog authors to share and highlight your code.

Prism is a free open-source library that is used to highlight your code. This customized version of Prism is integrated with the Galaxie Blog Tiny Post Editor and supports scores of programming languages. Prism is also integrated with the Galaxie Blog themes and is tailored to perfectly present code across all devices.

To embed code in the Post Editor, click on Insert - Code Sample. A new Insert/Edit Code editor will open.

At the top of this editor, there is a supported language dropdown that is used to highlight a particular language and supports all of the popular (and sometimes not so popular) web-oriented languages.

The languages supported in Galaxie Blog include:

  • CSS
  • Javascript
  • C#
  • Cfscript
  • Java
  • JSON
  • PHP
  • Python
  • Ruby
  • SQL 

After selecting the language option that you want to share, simply copy and paste your code and click on the Save button at the bottom of the editor.

You will see a preview of how the code is highlighted in the Tiny Post Editor. Once you submit your post, your code syntax will be highlighted on the blog page.