Type:Code

http://semantic-mediawiki.org/wiki/Type:Code

The datatype code is used for technical texts of arbitrary length, such as source code listings. Text is thus very similar to Type:Text, and it has the same restrictions regarding querying and sorting.

The special functionality of Type:Code properties is that they take some effort to preserve the layout and formatting of their values when displaying them on a wiki page. In particular, newlines and indents are preserved in the display, and some special characters such as "<" are escaped to preserve their appearance. Due to the architecture of MediaWiki and SMW, it is not possible to achieve this behaviour in any other way than by means of a specialised datatype.