Jump to content
Sign in to follow this  
EchoCharly

How to place comment within <script> ... </script>

Recommended Posts

I am working on some xml-gauges. This gauge contains a <script> section.

Is it possible to place a comment within that section? 

Something like   <script>  ....   <!--  comment -->  ... </script>  does not work?

Then how to comment?

 

Sorry ... wrong section ... but how to delete it or  move it elswere?

Edited by EchoCharly

i5-2500k @3.3GHz l 8GB l GTX560TI   FSX l Orbx l AS16+ASCA l Win7-64

Share this post


Link to post
Share on other sites
14 hours ago, EchoCharly said:

Is it possible to place a comment within that section?

I use either Notepad++ or Komodo Edit when writing my XML gauges. What I do is just write the text, select it and then Edit>Comment (or something like that).

 

14 hours ago, EchoCharly said:

Sorry ... wrong section ... but how to delete it or  move it elswere?

Just report your own post. I mean, press the "Report post" link in the upper right part of your post. It will ask for a reason and then you can write there your request to move. Then this request will be forwarded automatically to the moderators.


Best regards,
Luis Hernández 20px-Flag_of_Colombia.svg.png20px-Flag_of_Argentina.svg.png

Main rig: self built, AMD Ryzen 5 5600X @ 4.4 GHz 2x8 GB DDR4-3200 RAM, Nvidia GTX1650 4 GB, 256 GB M.2 SSD (OS+apps) + 1 TB SATA III SSD (sims) + 1 TB 7200 rpm HDD (storage), Viewsonic VX2458-MHD 1920x1080@23-144 Hz, Windows 10 Pro.  Runing P3D 4.5 and MSFS2020 there, rarely going below 30 FPS.

Mobile rig: ASUS TUF FX504GD (Intel i5 8300H @ 2.3-3.7 GHz; 2x8 GB DDR4-2666 RAM; Nvidia GTX 1050 2 GB; 256 GB M.2 SSD + 1 TB SATA III SSD as storage; Windows 10 Home). Running FSX-SE and FS9 there.

VKB Gladiator NXT Premium Left + GNX THQ as primary controllers. Xbox 360 and eDimensional G-Pad Pro wired controllers as standby/travel.

Share this post


Link to post
Share on other sites

What I do is place the comment after the </closing> tag:

<String>%((L:Avanti_ECS_CockpitTemp,number) int)%!d!</String> <!-- 22 --> 

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556

Interests: Gauge Programming - 3d Modeling for Milviz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    53%
    $13,405.00 of $25,000.00 Donate Now
×
×
  • Create New...