Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lang file comment format
Author Message
Cranky Old Man Offline
Posting Freak

Posts: 986
Joined: Apr 2012
Reputation: 38
Post: #1
Lang file comment format

A small question:
I've seen somebody (YourComputer?) use // to comment .lang scripts.
Recently I found out that XML, that lang is based off of, uses <!-- ... --> as comments.
FG hasn't commented their lang files at all.
...so which format is it?

Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-22-2012 09:14 AM by Cranky Old Man.)
04-22-2012 03:00 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Joined: Jul 2011
Reputation: 235
Post: #2
RE: Lang file comment format

I've never used // for adding comments to XML. Lang files are technically XML files, and XML relies on <!-- --> for comments.

Tutorials: From Noob to Pro
(This post was last modified: 04-22-2012 08:40 AM by Your Computer.)
04-22-2012 08:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 986
Joined: Apr 2012
Reputation: 38
Post: #3
RE: Lang file comment format

(04-22-2012 08:33 AM)Your Computer Wrote:  I've never used // for adding comments to XML. Lang files are technically XML files, and XML relies on <!-- --> for comments.
I confirmed it: You never used //, lang files don't register // as comments, and they do register <!-- --> as comments. (I was too tired to figure out a way to test it yesterday.)

Noob scripting tutorial: From Noob to Pro

04-22-2012 09:12 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)