https://github.com/shawalli/pygments-lexer-apex
Pygments lexer for the Salesforce Apex language.
https://github.com/shawalli/pygments-lexer-apex
apex pygments pygments-lexer salesforce
Last synced: 11 months ago
JSON representation
Pygments lexer for the Salesforce Apex language.
- Host: GitHub
- URL: https://github.com/shawalli/pygments-lexer-apex
- Owner: shawalli
- License: mit
- Created: 2018-07-20T02:53:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T22:58:57.000Z (over 7 years ago)
- Last Synced: 2025-03-31T04:18:42.963Z (about 1 year ago)
- Topics: apex, pygments, pygments-lexer, salesforce
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Apex Lexer
This module creates a Pygments lexer for the Apex language. Since Apex is largely based on Java,
this lexer is a modified form of the Java lexer.
# Hand-Testing
```bash
$ pygmentize -x -l ./pygments_lexer_apex.py:ApexLexer -f html -O full -o test.html test/apex/FundController.apxc
```
# Note
This was cooked up in about 15 minutes, so it almost certainly does not cover all the lexigraphical
complexities, edge cases, and obscure portions of the Apex language. Contributions to beef it up are welcome.