diff options
| author | nyamatongwe <unknown> | 2001-08-29 23:59:08 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-08-29 23:59:08 +0000 | 
| commit | 5a0ae510e26087adcad5e4dce8d498e1a1f89ec2 (patch) | |
| tree | 859ff81d3a040a3c3695eac122c388612d5cb1b2 | |
| parent | 39c721487992d3c218c0092cd7fc7f3ce3c8bc51 (diff) | |
| download | scintilla-mirror-5a0ae510e26087adcad5e4dce8d498e1a1f89ec2.tar.gz | |
Changed ASP default language option to asp.default.language which can
be 1 for JavaScript, 2 for VBScript, or 3 for Python with JavaScript
as the default.
| -rw-r--r-- | src/LexHTML.cxx | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index d7d94856a..aef65beca 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -380,11 +380,9 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  	if (lineCurrent > 0) {  		lineState = styler.GetLineState(lineCurrent);  	} else { -		lineState = eScriptJS << 8;	// Default client script is JavaScript -		if (styler.GetPropertyInt("asp.default.to.vbs")) -			lineState |= eScriptVBS << 4; -		else	// Default ASP script to JavaScript for compatibbility with old versions -			lineState |= eScriptJS << 4; +		// Default client and ASP scripting language is JavaScript +		lineState = eScriptJS << 8;	 +		lineState |= styler.GetPropertyInt("asp.default.language", eScriptJS) << 4;  	}  	int inScriptType  = (lineState >> 0) & 0x03; // 2 bits of scripting type  	bool tagOpened    = (lineState >> 2) & 0x01; // 1 bit to know if we are in an opened tag | 
