Re: [PATCH] gitweb: use highlight's shebang detection

2016-09-21 Thread Ian Kelling
fyi: I mistakenly did not include v2 in the subject of the last message.

[PATCH] gitweb: use highlight's shebang detection

2016-09-21 Thread Ian Kelling
The highlight binary can detect language by shebang when we can't tell the syntax type by the name of the file. In that case, pass the blob to "highlight --force" and the resulting html will have markup for highlighting if the language was detected. Document the feature and improve syntax

Re: [PATCH] gitweb: use highlight's shebang detection

2016-09-21 Thread Ian Kelling
On Tue, Sep 20, 2016, at 01:22 PM, Jakub Narębski wrote: > W dniu 06.09.2016 o 21:00, Ian Kelling pisze: > > > The highlight binary can detect language by shebang when we can't tell > > the syntax type by the name of the file. > > Was it something always present among highlight[1] binary

Re: [PATCH] gitweb: use highlight's shebang detection

2016-09-21 Thread Jakub Narębski
W dniu 21.09.2016 o 18:38, Junio C Hamano pisze: > Jakub Narębski writes: >> W dniu 06.09.2016 o 21:00, Ian Kelling pisze: >> >>> The highlight binary can detect language by shebang when we can't tell >>> the syntax type by the name of the file. >> >> Was it something always

Re: [PATCH] gitweb: use highlight's shebang detection

2016-09-21 Thread Junio C Hamano
Jakub Narębski writes: > W dniu 06.09.2016 o 21:00, Ian Kelling pisze: > >> The highlight binary can detect language by shebang when we can't tell >> the syntax type by the name of the file. > > Was it something always present among highlight[1] binary capabilities, > or is it

Re: [PATCH] gitweb: use highlight's shebang detection

2016-09-20 Thread Jakub Narębski
W dniu 06.09.2016 o 21:00, Ian Kelling pisze: > The highlight binary can detect language by shebang when we can't tell > the syntax type by the name of the file. Was it something always present among highlight[1] binary capabilities, or is it something present only in new enough highlight app?

[PATCH] gitweb: use highlight's shebang detection

2016-09-06 Thread Ian Kelling
The highlight binary can detect language by shebang when we can't tell the syntax type by the name of the file. To use highlight's shebang detection, add highlight to the pipeline whenever highlight is enabled. Document the shebang detection and add a test which exercises it in