You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Buddy Burden <bu...@barefoot.net> on 2004/03/03 21:13:10 UTC

Browsing HTML in the repository

Folks,

When browsing your repository, if you click on a filename, you see the
contents of the file (assuming it's a text file) formatted as if with a
<PRE> tag.  So, if the file happens to be an HTML file, you essentially see
the source HTML code.  Which, in most cases, is perfectly correct.

However, there are times when it would be nice to see the _formatted_ HTML
instead.  Is there a way to do this, other than the cumbersome Save Page As
/ Open File process within the browser?

TIA.


		-- Buddy


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Browsing HTML in the repository

Posted by Jan Hendrik <ja...@bigfoot.com>.
Concerning Re: Browsing HTML in the repository
Brian Mathis wrote on 10 Mar 2004, 12:06, at least in part:

> Internet Explorer ignores whatever mime type it's told that a page is, 
> and uses whatever it feels like.  If your files have a .html extension, 
> it'll show it as html.  This is incorrect behavior.

Brian,

I should have mentioned: I use Opera (and very, very rarely, 
Netscrappy 4.7something), not Internet Explorer. IE would always 
try to dial up and then end in a "Not found" on the MSN page, even 
though the URL is one reserved for LANs and even is defined in 
HOSTS. And that's a real M$ bug, but a completely different matter.

Jan Hendrik

---------------------------------------
Freedom quote:

     Public servants say, always with the best of intentions,
     'What greater service we could render
     if only we had a little more money and a little more power.'
     But the truth is that outside of its legitimate function,
     government does nothing as well or as economically as the private sector.
                -- Ronald Reagan, October 27, 1964


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Browsing HTML in the repository

Posted by Brian Mathis <bm...@directedge.com>.
Jan Hendrik wrote:

>That is interesting. I do almost only HTML stuff here and have not 
>set any properties so far, left this entirely to SVN, but never saw 
>the HTML code in the browser, but always the formatted page. But 
>maybe your HTML pages are missing a proper head so the browser 
>does not know what to do with the stuff?
>  
>
>Jan Hendrik
>
>  
>

Internet Explorer ignores whatever mime type it's told that a page is, 
and uses whatever it feels like.  If your files have a .html extension, 
it'll show it as html.  This is incorrect behavior.

-- 
Brian Mathis
http://directedge.com/b/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Browsing HTML in the repository

Posted by Jan Hendrik <ja...@bigfoot.com>.
Concerning Re: Browsing HTML in the repository
Buddy Burden wrote on 3 Mar 2004, 17:02, at least in part:

> Michael,
> 
> >  If you set the svn:mime-type property on that file to 'text/html'
> >  and commit, your browser should see subsequent revisions of that
> >  file as formatted HTML.

That is interesting. I do almost only HTML stuff here and have not 
set any properties so far, left this entirely to SVN, but never saw 
the HTML code in the browser, but always the formatted page. But 
maybe your HTML pages are missing a proper head so the browser 
does not know what to do with the stuff?

> <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
> 
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Jan Hendrik

---------------------------------------
Freedom quote:

     The house we hope to build is not for my generation but for yours.
     It is your future that matters.
     And I hope that when you are my age,
     you will be able to say as I have been able to say:
     We lived in freedom.
     We lived lives that were a statement, not an apology.
                -- Ronald Reagan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Browsing HTML in the repository

Posted by "C. Michael Pilato" <cm...@collab.net>.
Buddy Burden <bu...@barefoot.net> writes:

> When you say "subsequent revisions", though ... does that mean that the
> change won't really take effect until the next time the file changes?  If
> so, that might be slightly problematic since it doesn't change very often
> (and I'm not really in charge of changing it, either, just archiving it).

I *knew* you'd ask me about that phrase.  No, it should start working
with the revision in which the property was set.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Browsing HTML in the repository

Posted by Buddy Burden <bu...@barefoot.net>.
Michael,

>  If you set the svn:mime-type property on that file to 'text/html' and
>  commit, your browser should see subsequent revisions of that file as
>  formatted HTML.

Hey, that's a good tip ... I didn't know about that.  So basically I can
either see the formatted HTML or the HTML code?  That wouldn't be so bad.

When you say "subsequent revisions", though ... does that mean that the
change won't really take effect until the next time the file changes?  If
so, that might be slightly problematic since it doesn't change very often
(and I'm not really in charge of changing it, either, just archiving it).


		-- Buddy


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Browsing HTML in the repository

Posted by "C. Michael Pilato" <cm...@collab.net>.
Buddy Burden <bu...@barefoot.net> writes:

> Folks,
> 
> When browsing your repository, if you click on a filename, you see the
> contents of the file (assuming it's a text file) formatted as if with a
> <PRE> tag.  So, if the file happens to be an HTML file, you essentially see
> the source HTML code.  Which, in most cases, is perfectly correct.
> 
> However, there are times when it would be nice to see the _formatted_ HTML
> instead.  Is there a way to do this, other than the cumbersome Save Page As
> / Open File process within the browser?

If you set the svn:mime-type property on that file to 'text/html' and
commit, your browser should see subsequent revisions of that file as
formatted HTML.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org