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


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

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#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




Users browsing this thread: 1 Guest(s)