Full syntax highlighting for ModSecurity SecLang directives
Color-coded variables, operators, actions, and transformations
Support for .conf file extensions
Hover Documentation
Hover over any SecLang keyword to see detailed documentation including:
Directives: SecRule, SecAction, SecRuleUpdateTargetById, etc.
Actions: id, phase, msg, deny, allow, block, etc.
Operators: @rx, @pm, @beginsWith, @detectSQLi, etc.
Variables: ARGS, REQUEST_URI, REMOTE_ADDR, etc.
ctl Actions: ruleRemoveTargetById, ruleRemoveById, etc.
Each hover tooltip includes:
Description of the keyword
Syntax information
Usage examples
Desctiption of when to use the keyword
Related actions
Documentation link to the official ModSecurity Reference Manual (v3.x)
Documentation Source
The hover documentation was extracted from the official ModSecurity Reference Manual (v3.x) by GPT5, with some manual additions. If there are any mistakes, PRs are welcome!