SendCode
SendCode copied to clipboard
Matlab syntax and Comment blocks for Matlab and Julia
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.
Thanks for the contribution, I will take a closer look tonight.
~~Could you give an example of backward_sq_bracket_expand
?~~
Edit: oh, there was an example above.