Re: [viewvc-users] Unable to view files in markup only co
"C. Michael Pilato" <[email protected]> Wed, 24 Feb 2016 11:11:28 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAFVDjdxa=en6orqMMehdutFm47U9F0-5JtNXuvXjV91p=_tcrw__19742.2810867012$1456330300$gmane$org@mail.gmail.com> |
------=_Part_9911_1225076402.1456330292872 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Wed, Feb 24, 2016 at 10:08 AM, Logan Kuhn <[email protected]> wrote: > The files are .m which is for Mathematica. > I think that for now the best thing to do would be to edit your diff.ezt file to remove the conditional logic from the lines I posted before, and thus cause ViewVC to always link to the markup view: [define left_view_href][left.view_href][end] [define right_view_href][right.view_href][end] Another approach that might be less invasive would be to use ViewVC's mimetypes.conf file to claim that those file extensions are text-y ("text/plain"). Meanwhile, there might be some improvements I can make to ViewVC here, namely that if our Pygments syntax coloration engine claims it can markup the syntax for a given MIME type such as yours, treat such files as text-y. I'll try to look into this soon. -- Mike ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3162703 To unsubscribe from this discussion, e-mail: [[email protected]]. ------=_Part_9911_1225076402.1456330292872 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W= ed, Feb 24, 2016 at 10:08 AM, Logan Kuhn <span dir=3D"ltr"><<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>></spa= n> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px = 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-= style:solid;padding-left:1ex"><div style=3D"font-family:Arial;font-size:12p= t;color:rgb(0,0,0)"><div><span style=3D"font-size:12pt">The files are .m wh= ich is for Mathematica.</span></div></div></blockquote><div><br></div><div>= I think that for now the best thing to do would be to edit your diff.ezt fi= le to remove the conditional logic from the lines I posted before, and thus= cause ViewVC to always link to the markup view:</div><div><br></div><div>= =C2=A0 =C2=A0<span style=3D"font-size:12.8px">[define left_view_href][left.= view_</span><span style=3D"font-size:12.8px">href]</span><span style=3D"fon= t-size:12.8px">[end]</span></div><div style=3D"font-size:12.8px">=C2=A0 =C2= =A0[define right_view_href][right.view_href][end]</div><div style=3D"font-s= ize:12.8px"><br></div><div style=3D"font-size:12.8px">Another approach that= might be less invasive would be to use ViewVC's mimetypes.conf file to= claim that those file extensions are text-y ("text/plain").</div= ><div style=3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px">= Meanwhile, there might be some improvements I can make to ViewVC here, name= ly that if our Pygments syntax coloration engine claims it can markup the s= yntax for a given MIME type such as yours, treat such files as text-y.=C2= =A0 I'll try to look into this soon.</div><div style=3D"font-size:12.8p= x"><br></div><div style=3D"font-size:12.8px">-- Mike</div></div></div></div= > ------=_Part_9911_1225076402.1456330292872--