On Syntax Highlighting

Hello, I have two questions as below:

1, how to turn on the syntax highlighting when you’re running ROOT on shell prompt?

2, how to turn on the syntax highlighting when you’re editing ROOT in vim?

Thanks very much!

Best Regards,
Lijing Shao

Hi,

1: Recent ROOT versions (>=5.26) have builtin syntax highlighting at the prompt if you download any of the binaries we offer (or from AFS), or it you install libncurses-dev[el] before configuring. It’s not available on Windows for the time being.

2: ROOT doesn’t provide that. But maybe someone has written something for it - you might want to search the web or come back once a while to see whether someone has replied to your question.

Cheers, Axel.

[quote=“Axel”]Hi,

1: Recent ROOT versions (>=5.26) have builtin syntax highlighting at the prompt if you download any of the binaries we offer (or from AFS), or it you install libncurses-dev[el] before configuring. It’s not available on Windows for the time being.[/quote]

It works on Windows/GCC :slight_smile:

  1. There’s a syntax highlighting addon for Vim available at:
    vim.org/scripts/script.php?script_id=2387