benanders / LuaIDE

An in-game IDE for ComputerCraft
MIT License
43 stars 9 forks source link

API/OS Specific Text Highlighting #55

Open DomAmato opened 9 years ago

DomAmato commented 9 years ago

I am a grad researcher with DePaul University in Chicago and we are using ComputerCraft to teach Lua to grade schools. The IDE is great but it would be nice if specific API functions were highlighted and if OS specific objects also had their own syntax highlight, e.g. turtle.select(1) would be some combo of colors. This seems easy enough given the highlight,lua would just need some additions. I'm more than willing to fork and submit a PR

1lann commented 9 years ago

@GravityScore said that he's happy with doing it himself (although he might not ever get to it, lol), I'm sure he'll also be fine with you submitting a pull request too. Feel free to fork, modify, and distribute LuaIDE however you want.

DomAmato commented 9 years ago

Thanks, I did some quick changes and it works for what I need it for though I think it needs a bit more vetting to make sure highlighting acts the way its supposed to. right now the way i set it up is that it doesn't check if a function is a part of the api that called it, just highlights keywords