Usage of the PeopleCode syntax highlighter in the Ace Editor is really simple. Below is an example that demonstrates the functionality.
The syntax highlighter is not perfect, but it is definitely a step up from no highlighting at all. I hope to provide updates to the highlighting rules as I have time to the GitHub repository here. I certainly welcome any community contributed enhancements to this repository as well.
While PeopleCode syntax highlighting with the Ace Editor is helpful for displaying read-only PeopleCode snippets online, this functionality really becomes useful when used in an online PeopleCode editor that is capable of making real time code updates to the application. I did a post last year discussion the idea of exposing the %metadata Application Package as an API of sorts to support the backend of an online PeopleCode editor. While this was a solid proof of concept, the demonstrated editor in that post was undoubtedly hideous. Since then I have added a slew of changes with the most important one being the incorporation of the Ace Editor. Here is a screen shot of the progress that has been made to the online PeopleCode editor project:
As you can probably tell, the Ace Editor with PeopleCode syntax highlighting makes the online PeopleCode editor much more usable. I am excited to share and document the new features and functionality of the online PeopleCode editor project in a future post.