473,804 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automatic HTML/XML code formatting in VS2003

Hello, All!

I have some trouble with subject.
Maybe it is not trouble at all, but i need a good advise.
I have just tried to write simple ASPX page in HTML view.
Everything was good.
Auto-farmatting feature been worked well.
It was make right indents, quotes and ect.
Just like below:

<body>
<form id="MyForm" runat="server">
<table border="0">
<tr>
<td>
Text
</td>
</tr>
</table>
</form>
</body>

Then, in some time i opened my code and i've been
very suprised when i was looked at my code.
Code was formatted automatically in
something like that:

<body>
<form id="MyForm" runat="server">
<table border="0"><tr>
<td>
Text</td>
</tr></table></form>
</body>

What is it???
Where my nice indents?
And such things happes everytime i'm changing
HTML and visual view.
All my walkings thought the editor settings
not give me success.
Please help.
How can i fix it.

With best regards, Dymov Vlad. E-mail: twirpx@@@mail.r u

Jul 21 '05 #1
1 1518
Hey Vlad,
Are you using GridLayOut or FlowLayOut?
No matter what you'r using, the current version of .NET is VERY dangerouse
to html writers -
..Net edit, delete, change, add html code without asking you the second you
enter the DESING window.

-- Joey
"Dymov Vlad" <tw****@mail.ru > wrote in message
news:eo******** ******@tk2msftn gp13.phx.gbl...
Hello, All!

I have some trouble with subject.
Maybe it is not trouble at all, but i need a good advise.
I have just tried to write simple ASPX page in HTML view.
Everything was good.
Auto-farmatting feature been worked well.
It was make right indents, quotes and ect.
Just like below:

<body>
<form id="MyForm" runat="server">
<table border="0">
<tr>
<td>
Text
</td>
</tr>
</table>
</form>
</body>

Then, in some time i opened my code and i've been
very suprised when i was looked at my code.
Code was formatted automatically in
something like that:

<body>
<form id="MyForm" runat="server">
<table border="0"><tr>
<td>
Text</td>
</tr></table></form>
</body>

What is it???
Where my nice indents?
And such things happes everytime i'm changing
HTML and visual view.
All my walkings thought the editor settings
not give me success.
Please help.
How can i fix it.

With best regards, Dymov Vlad. E-mail: twirpx@@@mail.r u

Jul 21 '05 #2

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

Similar topics

0
2446
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in UML, and using automatic code generation to make Python APIs, XML I/O etc. (more below). We can be found at http://www.ccpn.ac.uk/index.html As a general point, automtic code generation would seem like a good idea in special cases where:
7
3673
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc. And i have things to offer, and to request. And a lot of ideas, but who needs them.... here's an example (from type_struct.py):
5
1154
by: TS | last post by:
I am creating a custom control and so I have a c# solution, and added a c# web control library project. I don't get any squigglies until after I build, then when I fix, they don't go away until after I build. The editor also doesn't reformat the code to keep things lined up, even though that option is set. Whats wrong?
3
1441
by: Kenneth P | last post by:
Hi there, I have a placeholder, table, tr and td object in this way in an .aspx file <asp:placeholder id=plhGrid Visible="False" Runat="server"> <table width="960" border="1"> <tr> <td> ... some other stuff </td>
15
1415
by: Craig Hunt | last post by:
I posted this in another newsgroup, so please forgive me if you've already seen it. --- Am I missing something here? Quite frequently, I'll write an aspx document taking care to format the HTML so that I and others on my team can read it. <sarcasm>We kind of like to know what's going on when we come back to the document later.</sarcasm> In any case, the editor, when switching from HTML view to the designer view
1
270
by: Dymov Vlad | last post by:
Hello, All! I have some trouble with subject. Maybe it is not trouble at all, but i need a good advise. I have just tried to write simple ASPX page in HTML view. Everything was good. Auto-farmatting feature been worked well. It was make right indents, quotes and ect. Just like below:
1
1453
by: Russell Mangel | last post by:
I am using VS2005. When I paste source code into the code window, VS2005 formats like the following: public MsgRecipientReader() : base() { }
5
1276
by: Ant | last post by:
Simple question - I think... I want to make the HTML in my ASP.NET more readable by seperating all the HTML controls by a line or two, but when I run the app. or switch to design mode, it snaps back into one big ugly block of messy HTML. Difficult to find controls amongst. Is there an option I can set to turn this auto bunching up of code off? It would be soooo nice if there was.
3
1210
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Visual Studio 2003 constantly changes HTML on my webform - For the worse! I've experienced this before, but now its really causing problems because it wrecks the page. How do I prevent VS from modifying my HTML? Specifically its changing an <objectwithin my page. Thanks.
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10361
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10103
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.