How to make comments in XML?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

How to make comments in XML?

Postby sommeralex » Sat Apr 05, 2008 8:25 am

Hello!

I tried to make comments in my xmls with <!--- ----> or <---- ---> and so on, but none of them worked..

?

thx..
sommeralex
Experienced Developer
Experienced Developer
 
Posts: 95
Joined: Sun Jan 20, 2008 3:12 am
Location: Vienna

Top

Postby plusminus » Sat Apr 05, 2008 9:50 am

Hello sommeralex,

use one dash less:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <!-- Comment -->
  2.  
  3. No comment
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


If you are opening your xml-resources with the Android-Resource/Manifest-Editor and start typing "[font=Lucida Console]<!--[/font]" it gets auto-completed to "[font=Lucida Console]<!-- -->[/font]"

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby sommeralex » Sat Apr 05, 2008 9:55 am

thx! it seems, that ecplise has some problems with the syntax checker sometimes..
sommeralex
Experienced Developer
Experienced Developer
 
Posts: 95
Joined: Sun Jan 20, 2008 3:12 am
Location: Vienna

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests