Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com

Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com
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.
Posted on Saturday, July 4, 2009 7:46 AM Blogging | Back to top


Comments on this post: Text from SQL Management Studio reformatted by Google Docs when using IE.

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net