none
How to insert code after text ? RRS feed

  • Question

  • I couldn't insert code just AFTER some text. The code is always inserted at the beginning of the page !
    Wednesday, December 17, 2008 6:06 PM

Answers

  • It normally inserts wherever the cursor was when you launched the snippet window.  Did you make sure that your cursor was at the end of the text?
    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 7:11 PM
  • SELECT  message_id 
    FROM    sys.messages 
    WHERE   language_id = 1033 
    This is me trying to post code with Chrome.

    Yep - looks like a Chrome issue.  The forums behave much better on IE7 at this point.  I think I recall reading that they were going to work on cleaning up the support for other browsers, but that'll be after the current global forums issues are taken care of, I'm sure.

    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 8:06 PM

All replies

  • It normally inserts wherever the cursor was when you launched the snippet window.  Did you make sure that your cursor was at the end of the text?
    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 7:11 PM
  • Definitely
    Wednesday, December 17, 2008 7:16 PM
  • Fair enough.  Stupid question, but I had to ask ;)
    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 7:24 PM
  • Would you mind trying to insert code after some text, to see if you come up with the same result ?

    Thanks in advance.
    Wednesday, December 17, 2008 7:37 PM
  • Sure.  Like this?

    SELECT  message_id  
    FROM    sys.messages  
    WHERE   language_id = 1033 

    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 7:40 PM
  • int main() 
        int i; 
     
     
    I'm trying again to insert code after this phrase. The cursor is at its end. Let's see what happens



    Again the same problem !!!!
    Wednesday, December 17, 2008 7:47 PM
  • What browser and version?
    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 7:52 PM
  • Google Chrome
    Wednesday, December 17, 2008 7:57 PM
  • SELECT  message_id 
    FROM    sys.messages 
    WHERE   language_id = 1033 
    This is me trying to post code with Chrome.

    Yep - looks like a Chrome issue.  The forums behave much better on IE7 at this point.  I think I recall reading that they were going to work on cleaning up the support for other browsers, but that'll be after the current global forums issues are taken care of, I'm sure.

    Aaron Alton | thehobt.blogspot.com
    Wednesday, December 17, 2008 8:06 PM
  • Thanks for your help anyway
    Wednesday, December 17, 2008 8:22 PM
  • Does this still happen in Chrome?

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

    Thursday, May 24, 2012 11:41 PM
    Owner
  • No, it does not. You don't have Chrome installed, right?

    For every expert, there is an equal and opposite expert. - Becker's Law


    My blog

    Friday, May 25, 2012 12:14 AM
    Moderator