SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Matlab syntax and Comment blocks for Matlab and Julia

Open lieskjur opened this issue 3 years ago • 2 comments

Matlab syntax - Expands all blocks that can be terminated with "end" Matches also "function" to "end" for compatibility with octave Uses array matching from Julia Keeps matching for "import" in comparison to Julia as does not have the others (haven't used it personally but according to documentation should work correctly)

Comment blocks - Expands comment blocks for both Matlab and Julia

Fake blocks (Julia and Matlab) - "fake blocks" which match around code you want to send all at once (speeds up debugging by the means of interpreting line by line).

Deficiencies - matches Matlab comment blocks even if there is more text after %{ even though I added "\s*$" (r"\s*%{\s*$", thiscmd). Maybe .re library differs from the regex checking tool I was using.

Feature suggestions/plans - Expanding blocks around array when sending it while on it's last line: A = [ 1 2 4 3 ]; ["enter"] Sending only #==# for Julie and %{%} of matlab comment blocks option (de-cluttering your console write-out )

Really loving the package, hope you will find some of the features worth adding.

lieskjur avatar Nov 30 '20 16:11 lieskjur

Thanks for the contribution, I will take a closer look tonight.

randy3k avatar Nov 30 '20 23:11 randy3k

~~Could you give an example of backward_sq_bracket_expand?~~

Edit: oh, there was an example above.

randy3k avatar Dec 01 '20 09:12 randy3k