Comments (1)
It could look like this:
demo
.openApp('editor', {minHeight: '350px', windowTitle: 'demo.js'})
.write(codeSegment0) //initial code
.write(codeSegment1, {insertAt:{line:2}}) // insert at start of line 2, default char 0
.write(codeSegment2, {insertAt:{line:6, char:5}}) // insert after line 6, char 5
.replace('', {from:{line:2}, to: {line:4}) // remove lines 2 through 4
.replace(codeSegment3, {from:{line:8, char: 3}, to: {line:8, char: 10})
.end()
from glorious-demo.
Related Issues (20)
- Add possibility to customize typing speed
- change the style of the cursor HOT 1
- Allow multiple independent editors. HOT 4
- Automatically scroll if text exceeds the bounds of the text box HOT 1
- Reveal code manually, one line at a time. HOT 1
- HTML vs Plain Text Handling HOT 5
- Support multi-line commands HOT 2
- Make .end() return a promise
- Create a method to close some application
- Create a method to clear terminal content HOT 1
- Is it for programming video teaching video tutorial? HOT 2
- Issue with character escaping when using Prism HOT 3
- Animaton start HOT 6
- Extendable API HOT 6
- Allow to open an application with some content already typed
- write() doesn't honor code highlighted with Prism HOT 2
- Add possibility to open an application without window animation HOT 1
- Span height issue creating mini vertical scroll HOT 4
- Support soft-wrap feature HOT 2
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 glorious-demo.