user7120460
user7120460

Reputation:

Is there a way of making multiline comments in Scilab?

I am new to Scilab and I am trying to make a multi-line comment. Accessing the documentation, they only say this about comments:

enter image description here

Source: https://help.scilab.org/doc/5.3.3/en_US/comments.html

Apparently, there is no way of making a multi-line comment. However, it is hard to believe, at least for me, that the authors of the language didn't think about this feature. Does any body know?

Upvotes: 0

Views: 6512

Answers (2)

Attila
Attila

Reputation: 615

You can easily comment whole code blocks by highlighting (one or) more lines and then press Ctrl+D or from the menu: Format > Comment Selection. This will place the // at the beginnig of every line automaticallay.

To uncomment something, highlight it, then Ctrl+Shift+D, or Format > Uncomment Selection menu.

Upvotes: 1

Gabriel Devillers
Gabriel Devillers

Reputation: 4002

It seems that multiple lines comments were introduced in Scilab 6.0.0.

From the manual:

Another way to comment a block of code is to use /* at the beginning and */ at the end.

Upvotes: 1

Related Questions