When I am using Google Docs, quite often I am copying the portion of code from Visual Studio or SQL Management Studio.
but the text is reformatted to become messy.
E.G.
ALTER PROCEDURE [dbo].[CheckNotProcessed]
@limit int = 10
AS
declare @StartDate datetime
declare @EndDate datetime
declare @NotProcessedCount int
is shown as
ALTER
PROCEDURE [dbo].[CheckNotProcessed]
@limit
int = 10
AS
declare
@StartDate datetime
declare
@EndDate datetime
declare
@NotProcessedCount int
I've tried to manually insert in HTML view <PRE></PRE> tags and then paste text between tags.
But in "Edit Html" under IE7 I am not able to "Update" - it causes JavaScript "Invalid Argument" error.
In Firefox I can paste the plain text.
Unfortunately, it doesn't have syntax colours, that I would like to preserve from SQL Management Studio.