473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to get VS.NET to stop rewriting my code?

Max
I've got a comment that dreamweaver uses that VS.NET keeps moving. I'm
wondering if there anyway to stop VS.NET from moving my code around

VS.NET changes:
</body>
<!-- InstanceEnd -->
</HTML>

to:

<!-- InstanceEnd -->
</body>
</HTML>

I don't understand why VS.NET won't let me put a comment where I want it?

-Max
Nov 18 '05 #1
11 1113
Max wrote:
I've got a comment that dreamweaver uses that VS.NET keeps moving. I'm
wondering if there anyway to stop VS.NET from moving my code around

VS.NET changes:
</body>
<!-- InstanceEnd -->
</HTML>

to:

<!-- InstanceEnd -->
</body>
</HTML>

I don't understand why VS.NET won't let me put a comment where I want it?


Try

Tools -> Options -> Text Editor -> HTML/XML -> Format
Now read the top two options, uncheck, test.

I think there's a bug with this, but it's worth a go.
Nov 18 '05 #2
"Max" wrote ...
I've got a comment that dreamweaver uses that VS.NET keeps moving.


On a similar note I have noticed that depending on what controls I add,
VS.Net also changes the case of my code - whilst this isn't a huge issue, I
do like things to be the same, an example of which would be adding
<asp:Panel> tags - any HTML in between this seems to be uppercased....

I know its note quite the same as your problem Max, but if anyone has any
knowledge of how to turn this off to leave the case as I entered it I would
be most grateful.

Regards

Rob

Nov 18 '05 #3

"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message
news:ez**************@TK2MSFTNGP10.phx.gbl...
"Max" wrote ...
I've got a comment that dreamweaver uses that VS.NET keeps moving.
On a similar note I have noticed that depending on what controls I add,
VS.Net also changes the case of my code - whilst this isn't a huge issue,

I do like things to be the same, an example of which would be adding
<asp:Panel> tags - any HTML in between this seems to be uppercased....

I know its note quite the same as your problem Max, but if anyone has any
knowledge of how to turn this off to leave the case as I entered it I would be most grateful.

Regards

Rob


On a similar note I have noticed :-) that when I add a table using the
menu, all tags are uppercase. However, when I add a row by hand
the tags are forced to lowercase! Hardly a problem, it just doesn't look
nice.
A feature the lowercases all html tags I can understand (IIRC xhtml
requires lowercase tags), but that should then be used consistently.

Hans Kesting
Nov 18 '05 #4
"Hans Kesting" wrote ...
A feature the lowercases all html tags I can understand (IIRC xhtml
requires lowercase tags), but that should then be used consistently.


indeed - consistancy would be good - I ALWAYS try to make my code look good,
even from the point of the HTML output being corrected indented - just think
its nicer to read :o)

I've found that VS.net nauses this up from time to time, with the dropping
of code left align after I've spent ages making it all look pretty- the
bugger :o)

EditPlus2 is a nice little text editor by the way, and that has a built in
feature for uppercasing/lowercases selected text (cntrl-L - cntl-U) - shame
VS.net doesnt have this eh..

Rob
Nov 18 '05 #5
Hi Max
Is it a dreamweaver template that VS.net is rewriting?
If so then I have had some success using this macro
http://www.asp.net/Forums/ShowPost.a...=1&PostID=8519

Joe

"Max" <ma*****@portvista.com> wrote in message
news:OA**********************@twister.tampabay.rr. com...
I've got a comment that dreamweaver uses that VS.NET keeps moving. I'm
wondering if there anyway to stop VS.NET from moving my code around

VS.NET changes:
</body>
<!-- InstanceEnd -->
</HTML>

to:

<!-- InstanceEnd -->
</body>
</HTML>

I don't understand why VS.NET won't let me put a comment where I want it?

-Max

Nov 18 '05 #6
Ctrl + Shift + U will make your selection into uppercase in VS.NET. And
Ctrl + U will make your selection into lowercase.

Shawn

"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message
news:OC**************@TK2MSFTNGP11.phx.gbl...
"Hans Kesting" wrote ...
A feature the lowercases all html tags I can understand (IIRC xhtml
requires lowercase tags), but that should then be used consistently.


indeed - consistancy would be good - I ALWAYS try to make my code look good,
even from the point of the HTML output being corrected indented - just think
its nicer to read :o)

I've found that VS.net nauses this up from time to time, with the dropping
of code left align after I've spent ages making it all look pretty- the
bugger :o)

EditPlus2 is a nice little text editor by the way, and that has a built in
feature for uppercasing/lowercases selected text (cntrl-L - cntl-U) - shame
VS.net doesnt have this eh..

Rob

Nov 18 '05 #7
"Shawn" wrote ...
Ctrl + Shift + U will make your selection into uppercase in VS.NET. And
Ctrl + U will make your selection into lowercase.


Hi Shawn,

Thats absolutely marvellous - cheers - I can tidy it all up again :)

Regards

Rob
Nov 18 '05 #8
Max
It seems these options don't affect anything. For what it's worth, I did see
an option for setting tags to uppercase and lowercase. But again, it doesn't
seem to matter what you set these options at.

-Max
"Adie" <ar*******@h-o-t-m-a-i-l.com> wrote in message > >
I don't understand why VS.NET won't let me put a comment where I want it?


Try

Tools -> Options -> Text Editor -> HTML/XML -> Format
Now read the top two options, uncheck, test.

I think there's a bug with this, but it's worth a go.

Nov 18 '05 #9
Max
Ok, nice macro, but forgive me for not even attempting to use it.

VS.NET deletes, duplicates, and rearranges the comment tags as well as a lot
of HTML tags. For example, last time I brought a page into VS.NET and the
title tag was gone. I don't see how this macro can remember what tags were
deleted.

I've been able to get by just manually rewriting the HTML before saving on
this very small project I'm doing as an experiment. But I can't possibly put
up with this on larger projects.

There has to be a fix for this? If VS.NET is going to harm well formatted
HTML then there needs to be an OFF switch.

*sigh*
"Joe Gass" <jo*@dontspamme.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Max
Is it a dreamweaver template that VS.net is rewriting?
If so then I have had some success using this macro
http://www.asp.net/Forums/ShowPost.a...=1&PostID=8519

Joe

Nov 18 '05 #10
Welcome to the club! You can take heart from the fact that you are not
the only one who has this complaint. Look at this link for a complete
discussion about this issue:

http://groups.google.com/groups?hl=e...6.248.16#link1

This problem arises because the HTML editor depends on Frontpage. And
since Frontpage plays around with the HTML code, VS.NET does the same.

The good news is that Microsoft has detached Frontpage from their HTML
editor in Whidbey. And it looks much better from what I have seen so
far.

Karun.

"Max" <ma*****@portvista.com> wrote in message news:<ke******************@twister.tampabay.rr.com >...
Ok, nice macro, but forgive me for not even attempting to use it.

VS.NET deletes, duplicates, and rearranges the comment tags as well as a lot
of HTML tags. For example, last time I brought a page into VS.NET and the
title tag was gone. I don't see how this macro can remember what tags were
deleted.

I've been able to get by just manually rewriting the HTML before saving on
this very small project I'm doing as an experiment. But I can't possibly put
up with this on larger projects.

There has to be a fix for this? If VS.NET is going to harm well formatted
HTML then there needs to be an OFF switch.

*sigh*


<snip>
Nov 18 '05 #11
Max
Thanks Karun.

Now I'm off to the Dreamweaver newsgroup to see how to get DW to stop
rewriting my VS.NET pages. I swear I'm in a bad dream.

-Max
"Karun" <ks*****@myway.com> wrote in message
news:74**************************@posting.google.c om...
Welcome to the club! You can take heart from the fact that you are not
the only one who has this complaint. Look at this link for a complete
discussion about this issue:

http://groups.google.com/groups?hl=e...6.248.16#link1
This problem arises because the HTML editor depends on Frontpage. And
since Frontpage plays around with the HTML code, VS.NET does the same.

The good news is that Microsoft has detached Frontpage from their HTML
editor in Whidbey. And it looks much better from what I have seen so
far.

Karun.

Nov 18 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Div | last post by:
Im not to confident with updating vb6 programs to the new vb NET so im taking the long, safe way round and rewriting them - my pictures used are made in paint and are very bad resolution to keep...
15
by: Rob Evans | last post by:
Is there a way of stopping " - Microsoft Internet Explorer" being added to the browser window title ? eg, I want it to say: My Website Name and not My Website Name - Microsoft Internet...
3
by: Jamie Jackson | last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The onclick event that I'm inserting works correctly in Opera, but not in FF or IE. I'm retroactively adding the statement...
2
by: Jon Maz | last post by:
Hi All, I've been looking into options for URL Rewriting in .net, and to be honest, I haven't seen anything that's easier than the old Classic Asp solution with an ISAPI filter redirecting to an...
3
by: Michael Appelmans | last post by:
I'm trying to use a rule based URL rewrite application which uses HttpApplication.RewritePath. I keep getting "rsource not found" error in application when running on shared web host although the...
0
by: Lee | last post by:
Hi all ;) Preamble -------- I'm using URL rewriting to enforce a frames policy (yeah, I know frames are 'bad' :) - i.e. if a request comes in for a page which should be nested within a...
3
by: Greg Collins [Microsoft MVP] | last post by:
I have done a bit of research of Url Rewriting, but as yet have been unsuccessful at getting it to work well, and there are issues around what file types are supported and how much code you want to...
0
by: psycho | last post by:
i have added url rewriting to my site. i am filling custom objects in context.items collection and then rewriting path the problem is that the page is url rewriting code is being hit two times...
1
Shinobi
by: Shinobi | last post by:
I am using ASP.net(c#) for my project. In my my project 2 pages are using URL rewriting method by referring this article URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.