Lamborghini Huracán LP 610-4 t
/ /

XtScript: Comments

How to add comment line to your xtscript

Writing comments in your code works is a good habbit.

Comments in script can help other people understand better your work or also help yourself when you are back working the codes after a long break.

Comments in XtScript are declared using:
# for single line comment.
/* */ for multi lines comment.

Learn how to use comments on XtScript from different examples

Comments will not be printed on your site neither brake your codes.

- Code:
<!--parser:xtscript-->
	var $safe = You are safe
	var $warning = You are in danger

	# We use green text for safe message
	print <span style="color:green">$safe</span><br/><br/>
	
	/* We use red text for warning message,
	or when something need a big attention */
	print <span style="color:red">$warning</span><br/><br/>
	
	print "The comments line will not be printed neither make your script error."
<!--/parser:xtscript-->
- Result:
You are safe

You are in danger

"The comments line will not be printed neither make your script error."