title: Jenkinsfile syntax highlighting in Java project using IntelliJ IDEA
body: <p>We already tried the approaches as listed below:</p>
  <ul>
  <li><a href="https://github.com/oliverlockwood/jenkinsfile-idea-plugin" rel="noreferrer">https://github.com/oliverlockwood/jenkinsfile-idea-plugin</a></li>
  <li><a href="https://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij" rel="noreferrer">https://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij</a></li>
  </ul>
  <p>After having searched the web for many hours on multiple days, we still haven't found a helpful resource on this matter. Thus, it appears to make sense to ask a new question here.</p>
  <p>We are developing our Java projects in IntelliJ idea and want to integrate our builds with Jenkins. When we create a <em>Jenkinsfile</em> in Idea, we do not get syntax highlighting or auto completion. Since we are new to Jenkins, those features would be really useful to us. How can we make Idea be more supportive with Jenkinsfiles?</p>
  <p>If there is no way to get syntax highlighting and auto completion for a <em>Jenkinsfile</em> in IntelliJ IDEA, what other editors would be helpful?</p>
  <hr />
  <h3>Please note:</h3>
  <ul>
  <li><p>we are working with Java projects, not Groovy projects.</p>
  </li>
  <li><p>We've already tried the plugin <a href="https://github.com/oliverlockwood/jenkinsfile-idea-plugin" rel="noreferrer">https://github.com/oliverlockwood/jenkinsfile-idea-plugin</a>. When the plugin is activated, the Jenkinsfile is recognized as such, but instead of syntax highlighting we get an error message, please see below.</p>
  <pre><code> pipeline {
   agent { docker 'maven:3.3.3' }
   stages {
       stage('build') {
           steps {
               sh 'echo Hello, World!'
           }
       }
     }
   }
  </code></pre>
  </li>
  </ul>
  <p>IntelliJ IDEA highlights the <code>p</code> of <code>pipeline</code> as error. The error message reads:</p>
  <blockquote>
  <pre><code>JenkinsTokenType.COMMENT, JenkinsTokenType.CRLF or
  JenkinsTokenType.STEP_KEY expected, got 'p'
  </code></pre>
  </blockquote>
  <p>Thanks for any help!</p>