Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wacc_26_web_client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rk4718
wacc_26_web_client
Commits
94b16a81
Commit
94b16a81
authored
Mar 13, 2020
by
Raghav Khanna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
High light code while executing
parent
66574a0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/App.js
src/App.js
+10
-5
No files found.
src/App.js
View file @
94b16a81
...
...
@@ -135,11 +135,16 @@ class App extends React.Component {
codeLine
=
codeLine
.
replace
(
"
let
"
,
"
window.
"
);
eval
(
codeLine
);
let
newIndex
=
this
.
state
.
statementIndex
+
1
;
// let highlightData = highlightNode(current);
this
.
setState
({
currentNode
:
this
.
state
.
mainStatements
[
newIndex
],
statementIndex
:
newIndex
})
let
newNode
=
this
.
state
.
mainStatements
[
newIndex
];
this
.
setState
((
state
,
props
)
=>
{
state
.
wacc
.
markers
=
current
.
highlighting
.
wacc
;
state
.
js
.
markers
=
current
.
highlighting
.
js
;
state
.
arm
.
markers
=
current
.
highlighting
.
arm
;
state
.
currentNode
=
newNode
;
state
.
statementIndex
=
newIndex
;
return
state
;
});
}
else
{
eval
(
"
waccPrintFinished()
"
);
eval
(
"
waccPrintingBuffer =
\"\"
"
)
...
...
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