You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
null coalesce operator
new namespaces
fix: "this" variables
fix: method names starting with "get" or "set" now highlighted correctly
Before, the keyword highlighter wasn't checking for word boundaries (may
be a bug with main library)
The screenshot was captured from a webpage using `apex.min.js` from the `dist` folder and the main `highlight.min.js` library.
17
21
(Code is from [Salesforce Trigger Framework](https://dschach.github.io/salesforce-trigger-framework/))
18
22

19
23
Feel free to use any css library you'd like!
20
24
25
+
## Apex code requirements
26
+
27
+
This library will highlight Apex as used in Apex classes and triggers.
28
+
29
+
## SOQL requirements
30
+
31
+
To highlight a SOQL query, it MUST be enclosed in square brackets (`[` and `]`). While creating a SOQL parser as a standalone sub-language (like javascript in html/Visualforce) would be ideal, this would require users to install both packages in a project and would get too messy. Each language can contain the other, so dependencies in the parsing become unwieldy.
32
+
21
33
## Usage
22
34
23
35
Simply include the Highlight.js library in your webpage or Node app, then load this module. For more complex usage, see [highlight.js usage](https://github.com/highlightjs/highlight.js#basic-usage).
@@ -26,12 +38,16 @@ Simply include the Highlight.js library in your webpage or Node app, then load t
26
38
27
39
Simply load this module after loading Highlight.js. You'll use the minified version found in the `dist` directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.
28
40
41
+
For more details see [Highlight.js main page](https://github.com/highlightjs/highlight.js#highlightjs).
0 commit comments