apache / apache/netbeans

Enable Groovy syntax highlighting for Jenkinsfile

Open
#6,560 1 comment 0 reactions 0 assignees View on GitHub
Contribution welcome Groovy kind:feature
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

It would be nice to have Groovy syntax highlightning for [Jenkinsfile](https://www.jenkins.io/doc/book/pipeline/jenkinsfile/), but they do not have an extension, so it is not possible to set the Groovy mimetype for them under Option -> Miscellaneous -> Files -> File Associations

### Use case/motivation

Example without higlight:
![image](https://github.com/apache/netbeans/assets/18428155/66dd927c-b1b3-4afa-ac13-9b8721b4be53)
Example with:
![image](https://github.com/apache/netbeans/assets/18428155/b479391f-355d-42a9-9d86-48b82aa6dafe)

### Related issues

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start with the NetBeans File Associations path named in the issue: Option → Miscellaneous → Files → File Associations, and inspect how a Jenkinsfile is identified when it has no extension. Trace the existing Groovy MIME-type and syntax-highlighting registration, then verify that Jenkinsfile content receives Groovy highlighting and that ordinary file associations remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.