How kingthorin/neonmarker works
Project type and purpose
• This is a Java-based plugin (add-on) for the OWASP ZAP proxy.
File structure
• src/main/java/org/zaproxy/zap/extension/neonmarker
– ExtensionNeonmarker.java: the entry point that hooks into ZAP.
– PopupMenuHistoryNeonmarker.java & PopupMenuItem…: menu items added to the History context menu.
• src/main/resources/org/zaproxy/zap/extension/neonmarker/resources
– Messages.properties: UI strings.
• src/main/javahelp/help: the built-in help set for the extension.
• Gradle build scripts and GitHub Actions workflows for CI and releases.
README insights
• Describes the addon’s function: colorizing History entries by tag.
• Points to help documentation within ZAP and online.
Main components
a. ZAP Core
– Extension Loader / Plugin Manager
– History Table module (the UI table of requests/responses)
– ZAP Preferences / Configuration API
b. Neonmarker Extension
– ExtensionNeonmarker (bootstrap, hook registration)
– UI Panel (NeonmarkerPanel) for rule editing
– Popup Menu Providers (PopupMenuHistoryNeonmarker, PopupMenuItemHistoryColor, PopupMenuItemHistoryUntag)
– Help Component (JavaHelp integration)
c. Resources & Build
– Messages.properties
– Help set files
– Build Scripts & CI workflows
Relationships & data flows
• Extension Loader → instantiates ExtensionNeonmarker at startup.
• ExtensionNeonmarker → registers:
– a UI Panel in ZAP’s tabbed interface
– popup menu items in History context menu
• When the History Table renders:
• Help menu → loads content from JavaHelp resource files.
Architectural patterns & design principles
• Plugin/extension pattern: loose coupling between ZAP core and this addon.
• Observer pattern: listening to History Table events to trigger recoloring.
• MVC-lite:
– View: NeonmarkerPanel and popup menu UIs
– Controller: ExtensionNeonmarker wiring components together
Technologies & frameworks
• Java 8+
• Gradle (Kotlin DSL) for build
• Swing (for UI panel and popup menus)
• JavaHelp API
• OWASP ZAP extension APIs