Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
0362e1cc
Commit
0362e1cc
authored
Jul 17, 2017
by
yann300
Committed by
GitHub
Jul 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #609 from ethereum/gotoLine-rob
adding gotoLine to the remix scroller
parents
52b93b83
5fdd77f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app.js
src/app.js
+2
-0
editor.js
src/app/editor.js
+4
-0
No files found.
src/app.js
View file @
0362e1cc
...
@@ -753,6 +753,8 @@ var run = function () {
...
@@ -753,6 +753,8 @@ var run = function () {
switchToFile
(
source
)
switchToFile
(
source
)
}
}
this
.
statementMarker
=
editor
.
addMarker
(
lineColumnPos
,
'highlightcode'
)
this
.
statementMarker
=
editor
.
addMarker
(
lineColumnPos
,
'highlightcode'
)
editor
.
scrollToLine
(
lineColumnPos
.
start
.
line
,
true
,
true
,
function
()
{})
if
(
lineColumnPos
.
start
.
line
===
lineColumnPos
.
end
.
line
)
{
if
(
lineColumnPos
.
start
.
line
===
lineColumnPos
.
end
.
line
)
{
this
.
fullLineMarker
=
editor
.
addMarker
({
this
.
fullLineMarker
=
editor
.
addMarker
({
start
:
{
start
:
{
...
...
src/app/editor.js
View file @
0362e1cc
...
@@ -152,6 +152,10 @@ function Editor (editorElement) {
...
@@ -152,6 +152,10 @@ function Editor (editorElement) {
return
editor
.
session
.
addMarker
(
currentRange
,
cssClass
)
return
editor
.
session
.
addMarker
(
currentRange
,
cssClass
)
}
}
this
.
scrollToLine
=
function
(
line
,
center
,
animate
,
callback
)
{
editor
.
scrollToLine
(
line
,
center
,
animate
,
callback
)
}
this
.
removeMarker
=
function
(
markerId
)
{
this
.
removeMarker
=
function
(
markerId
)
{
editor
.
session
.
removeMarker
(
markerId
)
editor
.
session
.
removeMarker
(
markerId
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment