Enforce Script Highlighter – Extension

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[ *(https?:\/\/[^ = ]+) +([^= ]+) *\]" to "{{Link|$1|$2}}")
m (Fix version)
Line 13: Line 13:
! Release Date
! Release Date
|
|
* 2022-07-30: "v0" (0.00b), first upload, Syntaxhighlight's C# syntax wrapper
* 2022-07-30: "v0" (0.00a), first upload, Syntaxhighlight's C# syntax wrapper
|-
|-
! Version
! Version
| 0.00a
| 0.00a
|}
|}
This extension highlights [[:Category:Arma_Reforger/Modding/Guidelines/Scripting|Enforce Script Syntax]].
This extension highlights {{GameCategory|armaR|Modding|Guidelines|Scripting|text= Enforce Script Syntax}}.





Revision as of 16:53, 14 June 2023

Enforce Script Highlighter
Description Highlights Enforce Script code (uses Syntaxhighlight at the moment)
Author Lou Montana
Project Start 2022-07-30: Project start
Release Date
  • 2022-07-30: "v0" (0.00a), first upload, Syntaxhighlight's C# syntax wrapper
Version 0.00a

This extension highlights Enforce Script Syntax.


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


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.

Examples
Code Result
<enforce/>
-no code provided-
<enforce></enforce>
-no code provided-
<enforce> </enforce>
-no code provided-
<enforce>int i = 3;</enforce>
int i = 3;
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
Report issues on Discord, in the #community_wiki channel!