Enforce Script Highlighter – Extension
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Text replacement - "\[ *(https?:\/\/[^ = ]+) +([^= ]+) *\]" to "{{Link|$1|$2}}") |
||
Line 79: | Line 79: | ||
|} | |} | ||
{{Feature|informative|Report issues on | {{Feature|informative|Report issues on {{Link|https://discord.gg/arma|Discord}}, in the {{hl|#community_wiki}} channel!}} | ||
[[Category: MediaWiki Extension]] | [[Category: MediaWiki Extension]] |
Revision as of 15:09, 28 April 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 |
|
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.
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 |