Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get colors and syntax highlighting in Octave?

I'm a newbie to Octave. When I'm working in Octave, the whole screen is a stream of white on black text, making it difficult to find my previous commands, Octave outputs and code I typed at the Octave prompt.

Is there any configuration I can perform to get some colors in the Octave prompts and messages (like in colorful bash or fish shell) and color syntax highlighting in the Octave code I type at its prompt (like in bpython)?

like image 327
Ashwin Nanjappa Avatar asked Jan 24 '26 09:01

Ashwin Nanjappa


1 Answers

What OS are you on? Linux or Windows?

If you're going to be doing any long-term projects, then I'd suggest to edit in a different editor emacs, vi, or notepad++ (in Windows).

I don't think the Octave interpreter supports syntax highlighting, but you may be able to customize prompt colors:

https://www.gnu.org/software/octave/doc/interpreter/Customizing-the-Prompt.html

like image 62
H.M. Avatar answered Jan 27 '26 01:01

H.M.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!