/    Sign up×
Community /Pin to ProfileBookmark

Comments appearing in webpage

On this page:
[url=http://essentialinux.com/basics.php]Linux Basics[/url]

You can see the following text at the bottom of the page:

[code]
<!– wget url-to-tar.bz2-file tar -xvvjf tar.bz2-file cd brand-new-folder ./configure –prefix=/usr/local make su #and enter your root pass when asked make install ldconfig #not always needed, but can’t hurt exit –>
[/code]

If you look at the code, that text is enclosed in comments. Why should it appear displayed in the browser? At least, in Firefox on linux it is displayed. Thanks.

Dotan Cohen
[url]http://what-is-what.com[/url]

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jun 09.2006 — Yea, it only shows up in web browsers, not in IE. I assume it's because of the --prefix sequence, which makes the whole comment invalid and therefor displayable as raw text.
Copy linkTweet thisAlerts:
@dotancohenauthorJun 09.2006 — Thanks, I didn't realise that "--" is illegal in comments. I thought that only "-->" would be illegal.

@coothead: Yeah, got around.
Copy linkTweet thisAlerts:
@ray326Jun 12.2006 — -- is the "end of comment", the > is just the end of the tag. Sounds strange at first but kind of makes sense once you think about it awhile.
×

Success!

Help @dotancohen spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...