Code

Last Updated: 12 Jan 2017

Please note that as of version 5.1.0.0 of Matrix, the functionality described on this page has been deprecated.

The Code Content Type allows you to display code as content on a page, as shown in the figure below.

Example code appearing a content within a Site
Example code appearing as content within a Site

When the Content Type for a Division is set to Code, the text box and accompanying fields shown in the figure below will appear.

The Code Content Type
The Code Content Type

Enter code to be displayed into the text box. You can also configure the way the display settings of the code on your Site through the following fields:

  • Show Line Numbers: check this box to display line numbers for the code.
  • Line Numbers Orientation: select whether to display line numbers on the left hand side or the right hand side of the code.
  • Line Number Style: select whether to use the HTML span tag or the HTML list tag to display the line numbers.
  • Line Number Class: enter the name of the class from the style sheet to be used for the line numbers.

Previous Chapter

Send Feedback

Noticed an error?
Want to suggest an improvement?

Let Us Know

The Latest

Let Us Know What You Think

Let us know if you spot any errors or if you have any ideas on how we can improve the Matrix Community Website.

Contact Squiz for Demo

Let us show you the true power of Squiz Matrix by giving you a personalised demonstration.