Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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.
Great idea. I will look into that for the next update.
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.