Xml: Difference between revisions

From BotF2-Wiki
Jump to navigation Jump to search
hints for xml using Visual Studio
No edit summary
 
Line 1: Line 1:
XML-files ([http://en.wikipedia.org/wiki/XML Wikipedia]) are used a lot in BotF2.
XML-files ([http://en.wikipedia.org/wiki/XML Wikipedia]) are used a lot in BotF2, files see [[:Category:XML-files]]


== <nowiki><!-- comment --></nowiki> ==
== <nowiki><!-- comment --></nowiki> ==

Latest revision as of 11:25, 3 May 2014

XML-files (Wikipedia) are used a lot in BotF2, files see Category:XML-files

<!-- comment -->

<!-- means that next text/lines are simply a comment, not a code. End of this is/must be -->'''

Sometimes this is also used to deactivate some part of code which is standardly not used. For example just look into MusicPacks.xml.

Visual Studio

might be a little bit different, depending on version of Visual Studio and on language (most here is taken from German versions 2008, 2010 or 2013)

open a xml

just drag'n'drop the file to Visual Studio (right click and "open with" might also work)

Editor

show line numbers

> EXTRAS > OPTIONS > TEXTEDITOR > ALL LANGUAGES > GENERAL: line numbers

show space

> EDIT > ADVANCED: STRG+E, S

optimize

> EDIT > ADVANCED: STRG+E, D (whole document) or STRG+E, F (only marked area)