Difference between revisions of "Template:Infobox major-mode"
Jump to navigation
Jump to search
(Created page with "<includeonly> {{Infobox |bodystyle = width:30em; |title = {{{title}}} |header1 = |label1 = Library |data1 = {{{library}}} |header2 = |label2 = Comm...") |
m |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
|header4 = | |header4 = | ||
|label4 = Auto-activates for | |label4 = Auto-activates for | ||
− | |data4 = {{{auto activates}}} | + | |data4 = {{#if:{{{auto activates|}}}|<tt>{{{auto activates}}}</tt>}} |
}} | }} | ||
+ | [[Category:Major modes]] | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Line 25: | Line 26: | ||
|builtin = yes | |builtin = yes | ||
|auto activates = *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh | |auto activates = *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh | ||
+ | }} | ||
+ | |||
+ | Generate a major-mode infobox. | ||
+ | |||
+ | <pre>{{Infobox major-mode | ||
+ | |title = C++ | ||
+ | |library = cc-mode | ||
+ | |command = c++-mode | ||
+ | |builtin = yes | ||
+ | |auto activates = *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh | ||
+ | }}</pre> | ||
+ | will generate the infobox shown at the top right corner of this page. | ||
+ | |||
+ | |||
+ | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 01:14, 4 April 2012
Library | cc-mode |
---|---|
Command | c++-mode |
Builtin | yes |
Auto-activates for | *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh |
Generate a major-mode infobox.
{{Infobox major-mode |title = C++ |library = cc-mode |command = c++-mode |builtin = yes |auto activates = *.ii, *.CC, *.HH, *.cpp, *.hpp, *.cxx, *.hxx, *.c++, *.h++, *.cc, *.hh }}
will generate the infobox shown at the top right corner of this page.