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
82d090c9
Commit
82d090c9
authored
Oct 05, 2015
by
d11e9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved error and warning navigation
parent
d4d76091
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
index.html
index.html
+7
-2
browser-solidity.css
stylesheets/browser-solidity.css
+1
-1
No files found.
index.html
View file @
82d090c9
...
@@ -104,6 +104,7 @@ THE SOFTWARE.
...
@@ -104,6 +104,7 @@ THE SOFTWARE.
SOL_CACHE_FILE
=
getFiles
()[
0
];
SOL_CACHE_FILE
=
getFiles
()[
0
];
editor
.
setValue
(
window
.
localStorage
[
SOL_CACHE_FILE
],
-
1
);
editor
.
setValue
(
window
.
localStorage
[
SOL_CACHE_FILE
],
-
1
);
editor
.
resize
(
true
);
session
.
setMode
(
"ace/mode/javascript"
);
session
.
setMode
(
"ace/mode/javascript"
);
session
.
setTabSize
(
4
);
session
.
setTabSize
(
4
);
session
.
setUseSoftTabs
(
true
);
session
.
setUseSoftTabs
(
true
);
...
@@ -393,8 +394,8 @@ THE SOFTWARE.
...
@@ -393,8 +394,8 @@ THE SOFTWARE.
var
renderError
=
function
(
message
)
{
var
renderError
=
function
(
message
)
{
var
type
=
message
.
match
(
/^
[
0-9:
]
* Warning: /
)
?
'warning'
:
'error'
;
var
type
=
message
.
match
(
/^
[
0-9:
]
* Warning: /
)
?
'warning'
:
'error'
;
$
(
'#output'
)
var
$error
=
$
(
'<pre class="'
+
type
+
'"></pre>'
).
text
(
message
);
.
append
(
$
(
'<pre class="'
+
type
+
'"></pre>'
).
text
(
message
)
);
$
(
'#output'
).
append
(
$error
);
var
err
=
message
.
match
(
/^:
([
0-9
]
*
)
:
([
0-9
]
*
)
/
)
var
err
=
message
.
match
(
/^:
([
0-9
]
*
)
:
([
0-9
]
*
)
/
)
if
(
err
&&
err
.
length
)
{
if
(
err
&&
err
.
length
)
{
var
errLine
=
parseInt
(
err
[
1
],
10
)
-
1
;
var
errLine
=
parseInt
(
err
[
1
],
10
)
-
1
;
...
@@ -406,6 +407,10 @@ THE SOFTWARE.
...
@@ -406,6 +407,10 @@ THE SOFTWARE.
type
:
type
type
:
type
};
};
editor
.
getSession
().
setAnnotations
(
sourceAnnotations
);
editor
.
getSession
().
setAnnotations
(
sourceAnnotations
);
$error
.
click
(
function
(
ev
){
editor
.
focus
()
editor
.
gotoLine
(
errLine
+
1
,
errCol
-
1
,
true
);
})
}
}
};
};
...
...
stylesheets/browser-solidity.css
View file @
82d090c9
...
@@ -224,7 +224,7 @@ body {
...
@@ -224,7 +224,7 @@ body {
background-color
:
rgba
(
210
,
202
,
36
,
0.5
);
background-color
:
rgba
(
210
,
202
,
36
,
0.5
);
border-radius
:
0
;
border-radius
:
0
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
border
:
1px
solid
#
D00909
;
border
:
1px
solid
#
BBB427
;
}
}
#ghostbar
{
#ghostbar
{
...
...
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