Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the CMS, the code editor lets you view and appears whenever users view or edit code for various purposes such as formatting adding content or adding script files. Code Depending on function, code may be HTML/XML elements, JavaScript, CSS, and Razor syntax. The code editor has features to make viewing and editing easier. Also, where file history is always keptretained, e.g., Scripts and Styles, and Custom Widgets,  you can bring up a comparison tool is available so that two versions of a file can be compared side by side and use the comparison tool to check differences.

The code editor appears in various pages, widgets, custom widgets, and Scripts and Styles files.


Where you will find the code editor

Scripts & Styles

Javascript and CSS files

Image Modified

HTML source code view in the WYSIWYG content editor

Various pages and widgets

Image Modified


Custom widgets

Razor syntax

Image Modified

   

Code editor features


Feature
Code auto completion, content assist, and code hinting of JavaScript, CSS, HTML

Once a character is typed, any matching options are listed for selection. Auto completion attempts to guess what you are typing before you finish typing it. This can save typing time and help find the code you need.

Page thumbnail

On the right side, you get a small view (thumbnail) of the file or page contents. You can click on a part to quickly jump to that location. 

Syntax colourisationhighlighting

Text and coding are consistently coloured to help viewing and editing. distinguish certain syntactic elements. This can make it easier to spot problems in your code.


Colour picker

Coding Code that calls for add a colour will display a small square. Hover over it to use the colour picker.

Side by side comparison tool

(In Scripts and Styles, and Custom Widgets)

Contents of two versions can be compared. Changes are highlighted in red. Newly added content or coding are highlighted in green. 

...