Difference between revisions of "Xml"

From BotF2-Wiki
Jump to: navigation, search
m (1 revision)
(hints for xml using Visual Studio)
Line 8: Line 8:
  
 
Sometimes this is also used to deactivate some part of code which is standardly not used. For example just look into MusicPacks.xml.
 
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 [[Source Code|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)

Revision as of 13:58, 23 February 2014

XML-files (Wikipedia) are used a lot in BotF2.

<!-- 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)