Skip navigation
tensa_bankai
Currently Being Moderated

How to comment out in flash builder 4.7 for xml?

Jun 27, 2013 10:26 AM

Tags: #flash #builder #flash-builder #4.7

I am trying to comment out parts of an xml code and can not do it in flash builder 4.7 use to be able in 4.6.

 
Replies
  • Currently Being Moderated
    Jun 28, 2013 12:51 AM   in reply to tensa_bankai

    Are you refering to an MXML file, or just a straight up XML file? In either case it should be the same. Comments are done with HTML style comment tags, like this:

     

    <!-- This is a comment -->

     

    I have verified and know that this is the case with MXML. In XML I haven't verified it, but unless Flash Builder 4.7 is handling XML in a radically different way than how most applications handle XML, it should work.

     

    Also, here's a shortcut key that you would probably find useful. To comment something out, simply select what you want commented out, and then press CTRL-SHIFT-C and it will automatically comment out the selected section. And if you select a commented out section and press CTRL-SHIFT-C, then it will uncomment out the selected section.

     

    Hope this helps.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 11:37 AM   in reply to tensa_bankai

    That's odd. I got it to work on Flash Builder 4.7 just fine in a test using the following steps:

     

    1. Create a new Flex Mobile Project.

    2. Inside of the new project, press ctrl-n, then inside of the Select a wizard dialog choose XML->XML File.

    3. Follow the steps in the dialog to create a new XML file.

    4. Inside of the new XML file add some basic XML code.

    5. Highlight a section of the XML code and press ctrl-shift-c.

     

    With these steps I have and XML file and when using ctrl-shift-c the selected code is commented out using the HTML comment style. If you want you can try this test yourself and from there we can determine if your issue is project specific, or if it is an issue with your Flash Builder 4.7 setup.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2013 4:34 PM   in reply to tensa_bankai

    I'm not sure on that. Though if you want you can try something else. I'm

    curious to know if a newly created XML file in your upgraded 4.6 project

    will have the same issue. In your project do you want to try and create a

    new XML file and see if commenting out will work for the new file? If this

    works then you could potentially create new XML files for each of the old

    ones and then just copy and paste the data over to the new files. (Not an

    ideal solution, I know, but it might work and get you past your issue.)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points