Syntax Highlighting for Matlab

Status
Not open for further replies.

weetabixharry

Full Member level 4
Joined
Oct 9, 2013
Messages
232
Helped
69
Reputation
142
Reaction score
73
Trophy points
1,318
Location
Sweden
Visit site
Activity points
3,463
We see a lot of Matlab code on edaboard, but I can't seem to find an appropriate syntax highlighter. The closest language I could see was Scilab. However, it doesn't seem to work.

If I apply syntax highlighting to this C++ code, it looks okay:

Code C++ - [expand]
1
2
for (int i=0; i<10; i++)
    std::cout << "Hello World" << std::endl;



However, attempting the same thing with Scilab leads to some rubbish getting printed out:

Can we have a Matlab syntax highlighter added to edaboard?
 
Last edited by a moderator:

The built-in Matlab editor highlights the code.
Perhaps there is a highlighter for Octave (a GNU free, Matlab-like program with the same syntax).

Z
 

The built-in Matlab editor highlights the code.
Perhaps there is a highlighter for Octave (a GNU free, Matlab-like program with the same syntax).

Z

Yes, the Matlab editor highlights it nicely. When using Octave, I find that Notepad++ (also free, GNU GPL) highlights text as required.

Do you think it would it be possible to port similar functionality into edaboard? (When posting in the forum, clicking "Go Advanced"... the "syntax highlighter" dropdown offers neither Matlab nor Octave).

I think proper syntax highlighting would significantly enhance the quality of the edaboard forum. I feel we lag behind, for example, StackOverflow in this respect. Who can I even submit a request to? Any attempts I have made to contact moderators in the past have been met with silence.
 

I think proper syntax highlighting would significantly enhance the quality of the edaboard forum.
Yes. It would be nice. The editor should allow to paste formatted text.

Who can I even submit a request to? Any attempts I have made to contact moderators in the past have been met with silence.
Maybe by private message to the Administrator or another Moderator.
"Report post" button is intended for other uses, but "Contact us" link at the end sends an e-mail to the administrator.

Regards

Z
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…