Comments (10)
It depends on the language itself.
PS: is it julia?
from r-box.
Yes it is :)
from r-box.
I have been thinking to write a general package which extends SendText to what R-Box
could do. But the "block" feature really depends on the language itself.
Perhaps, I can write a simple plugin for julia, e.g. Julia-Box
....
from r-box.
It would be awesome. Isnt it require just to change that regex? Everything else is working, as far as I know
from r-box.
Julia is bit tricky, there are at least the following things to consider
- control flow: for, while, if else etc..
- string "foo"
- command
echo $HOME
@begin
@end
, quote end- comment, both # and block comment #= =#
- .....others
from r-box.
I am thinking only about function
and maybe for
, if
and while
.
These ussualy are the biggest blocks in the code. It is anoying to execute them line by line.
from r-box.
it is necessary to consider all these, for example
function f(x)
# end
a = "end"
b = @begin
1+ 1
@end
if 1 > 2
b = 2
end
b
end
If you don't consider them, we will not be able to find the last end
.
from r-box.
What about matching the indetation? For example if there are 4 space before function
you need to search for first end
with 4 spaces.
from r-box.
Check this out SendTextPlus.
from r-box.
Super cool, thank you!
from r-box.
Related Issues (20)
- Pipe (%>%) is treated as LaTeX comment in R Sweave files HOT 2
- Format Code is capturing text from `.Rprofile` and `.First()` output HOT 5
- Auto Completion not working on installed packages? HOT 1
- Fresh install: ImportError: No module named 'yaml' on MacOS High Sierra HOT 1
- format code doesn't work on Mac and Ubuntu HOT 2
- Error in R Sweave syntax HOT 4
- R-box menu items about package install, test, build not work in windows HOT 5
- autocomplete suggestion
- cannot install R-BOX HOT 2
- Uninstalling R-Box doesn't remove top menu items HOT 2
- feature request: more bookdown support, in particular `footnote` ^[Footnote text]` HOT 4
- Highlighting function names in default R syntax HOT 2
- Rbox cant find R
- r-box popup hints not shown HOT 4
- Set Working Directory does not work HOT 6
- Building sweave documents written in UTF-8 encoding HOT 2
- R-box does not contain R extended HOT 1
- R-box crashes plugin-host, for some R source files HOT 1
- Setting LC_ALL doesn't work for R-Box
- R-box can't send code to sublimerepl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r-box.