Frictional Games Forum (read-only)
Lang file comment format - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Lang file comment format (/thread-14988.html)



Lang file comment format - Cranky Old Man - 04-22-2012

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?




RE: Lang file comment format - Your Computer - 04-22-2012

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


RE: Lang file comment format - Cranky Old Man - 04-22-2012

(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.)