Home Download Buy Blog Forum Support

.wiki as a file type

.wiki as a file type

Postby garage_logician on Wed Feb 17, 2010 5:57 pm

I want to use sublime to edit pages in my wikidpad, i would love it if it would recognize the wiki syntax and highlight the text! So, Is there an easy way to add a .wiki file type? What needs to be done to add support for additional file types?
garage_logician
 
Posts: 5
Joined: Wed Feb 17, 2010 5:50 pm

Re: .wiki as a file type

Postby EJ12N on Thu Feb 18, 2010 4:28 pm

There's really no easy way of doing a custom syntax file in sublime. Basically is really the same as doing it for textmate but with some changes.
The correct name for "custom syntax or file type" is "Language grammars" http://manual.macromates.com/en/language_grammars.html

in sublime you gotta build the grammar file in XML instead of how textmate does it. Is more cumbersome but oh well. After creating the grammar you need to edit your theme and start coloring your syntax based on the scopes you define.

If I'm not too lazy in the future I might write a tutorial on how to do it. Not that hard once you get the hang of it. :)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: .wiki as a file type

Postby garage_logician on Thu Feb 18, 2010 10:07 pm

Thank you for your response. :-) I will watch for your tutorial.
garage_logician
 
Posts: 5
Joined: Wed Feb 17, 2010 5:50 pm

Re: .wiki as a file type

Postby EJ12N on Fri Feb 19, 2010 4:23 pm

garage_logician wrote:Thank you for your response. :-) I will watch for your tutorial.

I might even pick wikipad syntax as a guinea pig :D
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 12 guests