473,405 Members | 2,279 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,405 software developers and data experts.

Documentation

296 100+
Hello,

I want to do documentation of my HTML code present in various files .

Is commenting the only way to documentation ?

Is there a way such that the documentation part is not loaded into the memory ?
Mar 8 '07 #1
9 1323
AricC
1,892 Expert 1GB
Hello,

I want to do documentation of my HTML code present in various files .

Is commenting the only way to documentation ?

Is there a way such that the documentation part is not loaded into the memory ?
By loaded into memory do you mean viewable by the public?
Mar 8 '07 #2
pankajit09
296 100+
By loaded into memory do you mean viewable by the public?
I mean the part which is commented should not be loaded into the memory.

Also answer my first question ?
Mar 8 '07 #3
AricC
1,892 Expert 1GB
I mean the part which is commented should not be loaded into the memory.

Also answer my first question ?
The only way the comments aren't going to be viewable is if you have them on the server side anything written in HTML is viewable to everyone who visits your site.
Mar 8 '07 #4
jhardman
3,406 Expert 2GB
Yeah, so if you save the file as an asp and include comments like:
Expand|Select|Wrap|Line Numbers
  1. <%
  2. 'here is the first table that my stupid boss wanted to put in,
  3. 'but I don't want her to see what I really think of her %>
this will still be in the file on your computer, but won't make it to the user's.

Jared
Mar 9 '07 #5
drhowarddrfine
7,435 Expert 4TB
jhardman,
Since more people don't use asp than do, that won't help.
Mar 10 '07 #6
jhardman
3,406 Expert 2GB
jhardman,
Since more people don't use asp than do, that won't help.
No really. If you want a comment to stay in the code but not sent to the browser, this is a good way to do it. ASP files are still plain text, no need to change anything from the HTML file except the extension. Most web servers can handle ASP (I guess you need an add-on if you're using apache, but most professional servers either already have the add-on in place or are using like IIS or something that interprets it natively).

The only real option, unless I'm just missing what the asker was asking, is for the server to remove the comment before sending it to the browser, and that means some type of server-side scripting, whether it be javascript or PHP or whatever. None of these options require any great deal of coding, you are just adding a comment.

So I guess the most common web-server is apache, right? so maybe you should save it as .php and use a php comment. Apache will open it up, remove the comment and send it to the user's machine. Is that wrong?

Jared
Mar 14 '07 #7
AricC
1,892 Expert 1GB
The only real option, unless I'm just missing what the asker was asking, is for the server to remove the comment before sending it to the browser, and that means some type of server-side scripting, whether it be javascript or PHP or whatever. None of these options require any great deal of coding, you are just adding a comment.
Jared
Javascript isn't server side scripting.
Mar 14 '07 #8
drhowarddrfine
7,435 Expert 4TB
I don't think anyone is going to want to mess with installing asp stuff just to remove comments. I don't think any hosting service would do it. I think they'd have to install Mono but why? No, that's a huge leap. It's not just a matter of flipping a switch. I know I can't do that with lighttpd.
Mar 14 '07 #9
jhardman
3,406 Expert 2GB
Javascript isn't server side scripting.
Javascript can be done server side. ASP doesn't refer to the language used, so much as the technique. IIS or PWS will interpret it just fine as long as it is within the <% %> asp code tags, and the latest asp.net supports a half dozen languages or so. I don't know if apache supports it yet, but I don't see why it wouldn't. By the way, I think IE as far back as 4 can interpret vbscript on the browser side.

drhoward, I actually agree with you, I was just trying to find a solution to pankajit's original question. I don't see any other obvious way to remove the comments as they are sent to the browser. Do you see a solution that I don't?

Pankajit09, I may not be speaking for anyone else, but when I look in someone else's code and see that it is well documented, my first impression is that it makes it very clear and easy to understand, and it looks very professional. Is there any particular reason you are worried about passing your documentation on?

Jared
Mar 14 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Daniel R. Smorey Jr. | last post by:
I'm looking for a good place for Python documentation. I'm really lost on why it's so hard to find anything when it comes to me looking up a particular function in Python. My example would be the...
11
by: Steve | last post by:
posted on: comp.lang.python emailed to: docs@python.org I have a suggestion/request that will, I think, improve the Python documentation. Currently, the Python documentation in HTML format is...
24
by: Christopher J. Bottaro | last post by:
This post is just the culmination of my thoughts and discussions with my coworkers on Python. If you are not interested, please skip over it. At my work, we are developing a product from...
0
by: Jeff Levinson [mcsd] | last post by:
I'm an architect for a very large fortune 100 company and we still struggle with the best balance. However, I use a couple of simple guidelines that have worked very well for me in almost all...
0
by: Almoni | last post by:
Hi, I have a few .xsd files that include each other in the following way: <!-- lets call the main schema file AA.xsd and it includes BB.xsd inside it --> <xs:schema...
1
by: Ole Hanson | last post by:
I would like to be able to generate documentation for a custom configuration file (xml) to enable future support engineers to understand applicable values to the various elements inside the...
97
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which...
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
34
by: nicolasfr | last post by:
Hi, I am a bit disapointed with the current Python online documentation. I have read many messages of people complaining about the documentation, it's lack of examples and the use of complicated...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.