Comment (computer programming): Difference between revisions

Content deleted Content added
Syntax extension: Vim configuration is significantly different from extending the syntax of the language
Line 175:
Sometimes, comments describe development processes related to the code. For example, comments might describe how to [[software build|build]] the code or how to submit changes to the [[software maintainer]].
 
=== SyntaxExtend extensionlanguage syntax ===
 
Occasionally, code that is formatted as a comment is overloaded to convey additional information to the translator, such as [[conditional comment]]s. As such, syntax that generally indicates a comment can actually represent program code; not comment code. Such syntax may be a practical way to maintain compatibility while adding additional functionality, but some regard such a solution as a [[kludge]].<ref>[[c2: HotComments]]</ref>
Line 203:
}
</syntaxhighlight>
 
Many editors and [[Integrated development environment|IDE]]s read specially formatted comments. For example, the ''modeline'' feature of [[Vim (text editor)|Vim]]; which changes the handling of tabs. For example:
 
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
 
===Stress relief===