gitx icon indicating copy to clipboard operation
gitx copied to clipboard

Syntax highlighting enabled for languages other than Objective-C

Open suranyami opened this issue 15 years ago • 1 comments

Hi. I've made a few changes that enable syntax highlighting for languages other than Objective-C.

It needed all of the brush javascript files to be imported into:

`html/views/fileview/index.html`

passing the full file path into showFile from GLFileView.m

and some javascript string manipulation in

`html/views/fileview/fileview.js`

This is based on commit 9dd29f6048525481a761a80a60c2da6b60e8a734

I've built and tested it locally using Ruby files and it seemed to work fine. I'm not an expert on Objective-C, though, so don't be surprised if I've not cleaned up a pointer or somesuch.

Also added a Hash of suffix -> brush mappings, so that the right brush will be applied to file type.

Thanks for your fabulous work with GitX, btw. Our team uses it every day, and couldn't live without it.

suranyami avatar Nov 24 '10 10:11 suranyami

I've merged yours commits to my master branch, this was on my todo-list ;) Good work.

laullon avatar Dec 06 '10 23:12 laullon