Code Editor Field

Overview

Appian does not have any fields of any kind that allow the display of code (fixed-width monospaced fonts, syntax highlighting, etc.). This field would allow both the input of code (with syntax validation) as well as the display in a read-only fashion.

This field wraps the Ace Code Editor (http://ace.c9.io) in a SAIL Component, which uses the BSD license.

The Code Editor Field provides a special-purpose SAIL input field for entering, editing, and displaying code, including syntax highlighting of over 100 programming languages. The field shows the line numbers, selected or current line, supports code folding, and many other options. It is useful for applications that automate IT processes, for training or reference purposes, and anywhere that the formatting of monospaced text is important.

Anonymous
Parents
  • Cool component! A nice feature to add would be to minimize the height of the field in readOnly if there aren't enough lines of code to fill the full height of the field. I.e. if the height is SHORT but you only have 5 lines of code, then in readOnly the height of the field would only be 5 lines. This would be more consistent how a!paragraphField works as well.

Comment
  • Cool component! A nice feature to add would be to minimize the height of the field in readOnly if there aren't enough lines of code to fill the full height of the field. I.e. if the height is SHORT but you only have 5 lines of code, then in readOnly the height of the field would only be 5 lines. This would be more consistent how a!paragraphField works as well.

Children