Question: I have got a small code here in which i want to give a particular name and the text filed must be un-editable, how could that be done

```
<form method="get" action="watermark.php">
                <center><h3>YGG Live Player Stats</h3></center>
                <h5>Enter Player name :<h5> <br/><br/><input type="text" name="user" size=50 maxlength=50><br/><br/>
                <input type="Submit" name="Search" value="user">
            </form>

```

Answer: 
I've encountered the same problem (both with and without ReSharper installed, so that doesn't seem to be the problem). I "sent a frown" to Microsoft about this some time ago but have heard nothing back.

While this isn't a "fix", I have come across a handy workaround. Since "pretty listing" and the "Format Document" command give the same result, all you need to do is run that command. 

I found [this extension](https://visualstudiogallery.msdn.microsoft.com/3ea1c920-69c4-441f-9979-ccc2752dac56?SRC=VSIDE) which automatically runs the Format Document command when you save. Now, even if "pretty listing" does get mysteriously turned off, I still end up with my code being formatted automatically.
This won't solve the problem as such, but there is an example of how to set the Pretty Listing option directly using a macro, here: [Turn off pretty listing in visual studio](https://stackoverflow.com/questions/13152999/turn-off-pretty-listing-in-visual-studio)

So you could set up a macro which you can run easily with a hotkey when needed. If that code doesn't work, I recommend the ever-magnificent AutoHotkey (www.autohotkey.com) to do the same thing via a series of keystrokes.