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
9691b2cd
Commit
9691b2cd
authored
Oct 20, 2020
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better editor highlight
parent
c46c9165
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
side-panel.js
apps/remix-ide/src/app/components/side-panel.js
+4
-0
contextualListener.js
apps/remix-ide/src/app/editor/contextualListener.js
+5
-3
darkTheme.js
apps/remix-ide/src/assets/js/editor/darkTheme.js
+1
-1
No files found.
apps/remix-ide/src/app/components/side-panel.js
View file @
9691b2cd
...
...
@@ -91,6 +91,10 @@ export class SidePanel extends AbstractPanel {
})
}
focus
(
name
)
{
this
.
emit
(
'focusChanged'
,
name
)
}
removeView
(
profile
)
{
super
.
removeView
(
profile
)
this
.
verticalIcons
.
unlinkContent
(
profile
)
...
...
apps/remix-ide/src/app/editor/contextualListener.js
View file @
9691b2cd
...
...
@@ -123,14 +123,16 @@ class ContextualListener extends Plugin {
}
_highlightInternal
(
position
,
node
)
{
console
.
log
(
'highlighting______'
,
node
)
if
(
node
.
nodeType
==
'Block'
)
return
let
lastCompilationResult
=
this
.
_deps
.
compilersArtefacts
[
'__last'
]
if
(
lastCompilationResult
&&
lastCompilationResult
.
languageversion
.
indexOf
(
'soljson'
)
===
0
)
{
let
lineColumn
=
this
.
_deps
.
offsetToLineColumnConverter
.
offsetToLineColumn
(
position
,
position
.
file
,
lastCompilationResult
.
getSourceCode
().
sources
,
lastCompilationResult
.
getAsts
())
const
css
=
csjs
`
.highlightref_fullLine {
position:absolute;
z-index:2;
opacity: 0.
4
;
position:
absolute;
z-index:
2;
opacity: 0.
1
;
background-color: var(--info);
}
`
...
...
apps/remix-ide/src/assets/js/editor/darkTheme.js
View file @
9691b2cd
...
...
@@ -50,7 +50,7 @@ ace.define("ace/theme/remixDark",["require","exports","module","ace/lib/dom"], f
border: 1px solid #FCE94F;
\
}
\
.ace-remixDark .ace_marker-layer .ace_active-line {
\
background: #
363950
;
\
background: #
262843
;
\
}
\
.ace-remixDark .ace_gutter-active-line {
\
background-color: #363950;
\
...
...
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