highlightjs / highlight.js

JavaScript syntax highlighter with language auto-detection and zero dependencies.
https://highlightjs.org/
BSD 3-Clause "New" or "Revised" License
23.65k stars 3.59k forks source link

Feature Request: add highlighting for Pokemon Showdown team files #442

Closed austinpray closed 10 years ago

austinpray commented 10 years ago

Pretty sure this is essential functionality, not sure how this project has gotten so far without it.

example: https://github.com/austinpray/PokemonShowdown-team/blob/master/teams/uu/siq.txt

saucecode for parsing team files: https://github.com/Zarel/Pokemon-Showdown/blob/master/team-validator.js

@Zarel sup

Zarel commented 10 years ago

Hi, I just want to mention that that the linked code doesn't parse team files at all.

What you're looking for is:

https://github.com/Zarel/Pokemon-Showdown-Client/blob/aeaa3c01d586ab0ebd3d571f949c496ed68abfb2/js/client-teambuilder.js#L1741

austinpray commented 10 years ago

Thanks @Zarel

isagalaev commented 10 years ago

This is a common request, so we have an answer ready: http://highlightjs.readthedocs.org/en/latest/language-requests.html

Patches are welcome!

austinpray commented 10 years ago

Totally going to do this then.