Syntax highlighting for Groovy language [solved]


#1

Hi,

Is there a way to have syntax highlighting for Groovy language in Atom?

Thanks,

David


#2

This package is probably what you want:


#3

Thank you, it’s exactly what I was looking for!


#4

My apologies, but I am relatively new to Atom. I installed this package, and see it as installed and active, but there is no syntax highlighting. Could someone please explain how to get this package to work?


#5

I’m new to this app and I’m trying to learn how to use its functions better and gain some overall knowledge of bits uses.


#6

Hello @edotf & @daedaesplayground .

After installing the package you should restart Atom.
Thereafter the syntax highlighting will be in effect, if…
image

  1. The file extension is any of the ones listed:
    https://github.com/Jakehp/language-groovy/blob/master/grammars/groovy.cson#L1
'fileTypes': [
  'groovy'
  'groovy.inc'
  'gvy'
  'gradle'
  'Jenkinsfile'
]
  1. The grammar is selected as groovy (click and select)

BR