[fossil-users] Hello. Anyone for source highlighting?
Hi All, Just recently found out about fossil - I've been using it for a few weeks now and it's great, but I guess you all know that already. I've really got used to reading highlighted source code, and find it easier to pick out the relevant bits. To that end, I've implemented this in fossil by piping output to an external command, set using "fossil settings", and inserting the output from that in the page output. Maximum file size to attempt rendering on is controlled by another variable (added after source highlighting for sqlite3.c wedged my browser solid). I'm using GNU source-highlight to do the actual highlighting, but I imagine that other tools could be made to work as well. If you are interested, you can try it out and/or pick it up from http://www.utt.org/fossil.cgi/fossil Changes are on the "experimental" branch. It's been tested reasonably well on MacOSX and Linux. I've implemented a Win32 version as well, but this has really only had basic testing. Look forward to some feedback, and thanks again for the great tool. Cheers, Martin ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Hello. Anyone for source highlighting?
Hi Gour, You need a script to drive whichever highlighter you choose. If you are using GNU source-highliter, there is an example in tools/fossil- hilite.sh Martin On 09/11/2010, at 1:52 AM, Gour wrote: > On Mon, 8 Nov 2010 21:51:19 +1030 >>>>>>> "Martin" == Martin Sandiford wrote: > > Martin> To that end, I've implemented this in fossil by piping output > Martin> to an external command, set using "fossil settings", and > Martin> inserting the output from that in the page output. > > Can you provide some more details here...I've fetched and built fossil > from your experimental branch, set 'hilite-command' which now shows > (global) /usr/bin/source-highlight', but it seems I'm still missing > something else? > > -- > > Gour | Hlapicina, Croatia | GPG key: CDBF17CA > > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Hello. Anyone for source highlighting?
I'm in favor. Not really sure what I need to do to help this to happen? Code review anyone? Martin On 07/12/2010, at 8:40 PM, Gour wrote: > On Mon, 8 Nov 2010 21:51:19 +1030 >>>>>>> "Martin" == Martin Sandiford wrote: > > Martin> Changes are on the "experimental" branch. It's been tested > Martin> reasonably well on MacOSX and Linux. I've implemented a Win32 > Martin> version as well, but this has really only had basic testing. > > Is there any chance that it ends applied to the upstream? > > > Sincerely, > Gour > > -- > > Gour | Hlapicina, Croatia | GPG key: CDBF17CA > > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users