--- description: "Learn more about: XML documentation tag " title: " (C++ documentation comments)" ms.date: "11/04/2016" f1_keywords: [""] helpviewer_keywords: [" C++ XML tag", "c C++ XML tag"] ms.assetid: 3b23fc0f-e10d-4dd0-b197-48a46cbddd9f --- # `` documentation tag The `` tag indicates that text within a description should be marked as code. Use [``](code-visual-cpp.md) to indicate multiple lines as code. ## Syntax ```cpp /// text ``` ### Parameters *`text`*\ The text you want to indicate as code. ## Remarks Compile with [`/doc`](doc-process-documentation-comments-c-cpp.md) to process documentation comments to a file. ## Example ```cpp // xml_c_tag.cpp // compile with: /doc /LD // post-build command: xdcmake xml_c_tag.xdc /// Text for class MyClass. class MyClass { public: int m_i; MyClass() : m_i(0) {} /// MyMethod is a method in the MyClass class. /// int MyMethod(MyClass * a) { return a -> m_i; } }; ``` ## See also [XML documentation](xml-documentation-visual-cpp.md)