I have an example SQL Server SQL script below:
DECLARE @SQL_VAR VARCHAR(4000)
SET @SQL_VAR = ‘SELECT * FROM dbo.Table’
EXEC(@SQL_VAR)
This script is colorized correctly as is.
However, if I modify the sript as follow, colorization breaks:
DECLARE @SQL_VAR VARCHAR(4000)
SET @SQL_VAR = ‘
SELECT *
FROM dbo.Table
‘
EXEC(@SQL_VAR)
The script above is valid and colorized correctly with Microsoft’s SQL Server Management Studio. It appears EmEditor cannot handle a single string containing new lines.
I have reproduced this under the 32-bit and 64-bit versions of 10.0.1