graylog-plugin-pipeline-processor icon indicating copy to clipboard operation
graylog-plugin-pipeline-processor copied to clipboard

Add syntax coloring for editing rules

Open thomasdarimont opened this issue 8 years ago • 3 comments

Problem description

No syntax highlighting for rule editing.

Steps to reproduce the problem

  1. Edit a pipeline rule

Environment

  • Graylog Version: 2.2.1-1 (DockerHub Image)
  • Pipeline Processor plugin version: 2.2.1-1

FYI The (currently) latest version of brace (0.9.1) supports a drools highlighter.

thomasdarimont avatar Feb 21 '17 21:02 thomasdarimont

@thomasdarimont FYI, the syntax used in this plugin is not identical to the Drools syntax.

joschi avatar Feb 21 '17 21:02 joschi

Oh sorry - didn't pay enough attention. Was confused by the stream rules and already wondered about the custom grammar in the plugin... the graylog rabbit hole is pretty deep :)

I change the title to just syntax coloring then.

thomasdarimont avatar Feb 21 '17 22:02 thomasdarimont

I build small custom ace editor configuration that highlights the graylog rulelang source quite nicely.

If you'd like to give it a try have a look at this gist

I'm now trying to figure out how to built this in.

thomasdarimont avatar Feb 22 '17 23:02 thomasdarimont