Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Bardi 927 posts 2562 karma points
    May 01, 2011 @ 06:27
    Daniel Bardi
    0

    Editing Razor inside Umbraco back office - carriage return issue

    When editing a razor file, I hit enter and the cursor moves to the next line, but waaaay over to the right.. I can remove the whitespace to bring the cursor back but it's getting annoying.

    Anyone experience this or have a solution.  Is there a setting for the razor editor that I can switch off?

  • Daniel Bardi 927 posts 2562 karma points
    May 01, 2011 @ 07:03
    Daniel Bardi
    0

    I touched the web.config and nothing changed.

    I turned script caching off and the error went away... odd... 

    Can someone explain this... I know what I'm doing, just confused.

  • Lesley 284 posts 143 karma points
    May 01, 2011 @ 20:19
    Lesley
    0

    Hi Daniel,

    Weird. Does it happen with every Razor file, or just a particular one? I've not started playing with Razor yet, so don't really know, but (if this is just one file) I imagine the indentation after hitting return will match that of the previous line. Have you got a ton of whitespace further up the file?

    Just a stab in the dark.

  • Daniel Bardi 927 posts 2562 karma points
    May 01, 2011 @ 20:31
    Daniel Bardi
    0

    My last post was misplaced.. was supposed be on another issue.. :P

    In reference to your questions:  This happens on a new razor file (.cshtml) when file is empty and there is no whitespace.

  • Daniel Bardi 927 posts 2562 karma points
    May 08, 2011 @ 07:10
    Daniel Bardi
    0

    Any answers to this issue?

Please Sign in or register to post replies

Write your reply to:

Draft