Enforce Script Highlighter – Extension
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix version) |
Lou Montana (talk | contribs) (Update page with 0.95) |
||
Line 1: | Line 1: | ||
{| class="wikitable | {| class="wikitable float-right" | ||
! colspan="2" style="padding: 1.5em" | Enforce Script Highlighter | ! colspan="2" style="padding: 1.5em" | Enforce Script Highlighter | ||
|- | |- | ||
! Description | ! Description | ||
| Highlights Enforce Script code | | Highlights Enforce Script code. | ||
|- | |- | ||
! Author | ! Author | ||
Line 14: | Line 14: | ||
| | | | ||
* 2022-07-30: "v0" (0.00a), first upload, Syntaxhighlight's C# syntax wrapper | * 2022-07-30: "v0" (0.00a), first upload, Syntaxhighlight's C# syntax wrapper | ||
* 2023-06-15: v0.95, first custom lexer to mimic {{Link|Arma Reforger:Script Editor|Script Editor}}'s colours | |||
|- | |- | ||
! Version | ! Version | ||
| 0. | | 0.95 | ||
|} | |} | ||
This extension highlights {{GameCategory|armaR|Modding|Guidelines|Scripting|text= Enforce Script Syntax}}. | This extension highlights {{GameCategory|armaR|Modding|Guidelines|Scripting|text= Enforce Script Syntax}} using {{Link|Arma Reforger:Script Editor|Script Editor}}'s theme. | ||
Line 28: | Line 29: | ||
* Options: | * Options: | ||
** all of Syntaxhighlight | ** all of Syntaxhighlight | ||
** {{hl|inline}} for inline code | ** {{hl|inline}} for inline code | ||
** {{hl|notrim}} to remove the auto trim (lines themselves will always be rtrimmed) | ** {{hl|notrim}} to remove the auto trim (lines themselves will always be rtrimmed) | ||
Line 76: | Line 75: | ||
|- | |- | ||
! 0.00a | ! 0.00a | ||
| colspan="3" {{n/a}} | |||
|- | |||
! 0.95 | |||
| colspan="3" {{n/a}} | | colspan="3" {{n/a}} | ||
|} | |} |
Revision as of 18:33, 15 June 2023
Enforce Script Highlighter | |
---|---|
Description | Highlights Enforce Script code. |
Author | Lou Montana |
Project Start | 2022-07-30: Project start |
Release Date |
|
Version | 0.95 |
This extension highlights Enforce Script Syntax using Script Editor's theme.
Features
- Enforce Script Syntax support
- "Copy code to clipboard" button on hover
- Enforce Script tag button in the wiki edit toolbar (next to B and I)
- Options:
- all of Syntaxhighlight
- inline for inline code
- notrim to remove the auto trim (lines themselves will always be rtrimmed)
Installation
- Unzip the directory to wiki
/extensions /EnforceScriptHighlighter - Add
wfLoadExtension( 'EnforceScriptHighlighter' );
to LocalSettings.php - There are no settings
Usage
Using <enforce>
tags will auto-generate syntax highlighting.
Code | Result |
---|---|
<enforce/>
|
-no code provided-
|
<enforce></enforce>
|
-no code provided-
|
<enforce> </enforce>
|
-no code provided-
|
<enforce>int i = 3;</enforce>
|
|
This is <enforce inline>int i = 0; i++;</enforce> absolutely inline.
|
This is int i = 0; i++; absolutely inline. |
Known Issues
Version | Issue | Report Date | Fix Date |
---|---|---|---|
0.00a | N/A | ||
0.95 | N/A |