Syntax Rules for Configuration Files


This chapter describes the syntax rules for configuration file.

Tip: When there is an error, it is recorded in the log file (shell.log).

The following rules apply to the syntax of configuration file (shell.nss):

shell.nss structure
shell 
{
	// global variables
	var // variables 
	{
		// variables content
		variable-name = variable-value
		...
	}

	set // settings
	{
		theme
		{
			set-name = set-value
			...
		}

		set-name = set-value
		set-name = [set-value, set-value, ...]
		...
	}

	images
	{
		id = value
		"item 1" = value
		id1,id2, id3, "item 2" = value
		....
	}

	// static items
	static
	{
		// static items content
		item ( property-name = property-value   ... )
		...
	}

	// dynamic items
	dynamic
	{
		// dynamic items content
		item ( property-name = property-value   ... )

		separator [( property-name = property-value   ... )]

		menu ( property-name = property-value   ... )
		{
		   var // local variables
		   {
				variable-name = variable-value
				...
			}
			
			item ( property-name = property-value   ... )
			...
		}
		...
	}
}

Breaking Long Lines
For best readability, users often like to avoid lines longer than 80 characters. single quotes also allow break up a line.

shell 
{
	dynamic
	{
		item(title='Command prompt'
			cmd='cmd.exe')
	}
}