Closed darylrobbins closed 9 years ago
I'm wondering if there is already a collection with sample code for all common languages. Found this: https://github.com/isagalaev/highlight.js/tree/master/test/detect Not sure if we can just take it and use as a flat list. Maybe with permission.
Or the spec should only include languages that get bundled by Atom. https://github.com/atom/atom/blob/master/package.json#L130-L161. Maybe that's not enough.
Also, was thinking that the spec should have first a "typical" code example. So that theme authors can kinda see what it usually looks like. And then at the bottom, there could be tests and edge cases.
Well, that would definitely be easier than coming up with all the examples by hand. :)
highlight.js is released under the BSD license, so we'd be allowed to borrow their code as long as we attributed it back to them and retain the copyright notice. Regardless, I'd still suggest we obtain permission first.
On the subject of only including languages bundled with Atom, I'd say that probably isn't enough. We probably want to focus on looking great with all the bundled languages first but if we want the theme to be useful to the most amount of people, I'd suggest we stray beyond the core language set.
I think we're going to have a pretty difficult time coming up with a "typical" example in many cases. Every individual/organization is going to have their own patterns and practices, which make it difficult to nail down what typical code looks.
I think we're going to have a pretty difficult time coming up with a "typical" example in many cases. Every individual/organization is going to have their own patterns and practices, which make it difficult to nail down what typical code looks.
Yeah, it's less about if the code is correct or if it follows some patterns and practices. Maybe a better word would be a "basic" example. Just so that you don't see only edge cases, but also how syntax looks when it's used in a normal way. Anyways, I might add it to some that I know enough.