Skip to content

Commit d292d72

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents c3498a9 + 00c4716 commit d292d72

6 files changed

Lines changed: 128 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An UML Class explorer for InterSystems Caché.
66
+ Build diagrams for any package or subpackage;
77
+ Edit diagrams after build;
88
+ Export diagrams as an image;
9-
+ View class methods code;
9+
+ View class methods code with syntax highlighting;
1010
+ Zoom in and out, explore big packages and more.
1111

1212
## Screenshots

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CacheUMLExplorer",
3-
"version": "0.10.1",
3+
"version": "0.11.0",
44
"description": "An UML Class explorer for InterSystems Caché",
55
"directories": {
66
"test": "test"

web/css/syntax.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.syntax-comment {
2+
color: green;
3+
}
4+
5+
.syntax-string {
6+
color: #394;
7+
}
8+
9+
.syntax-vars, .syntax-keyword {
10+
color: #00b;
11+
}
12+
13+
.syntax-names {
14+
color: #299;
15+
}
16+
17+
.syntax-functions {
18+
color: #986;
19+
}
20+
21+
.syntax-global {
22+
color: #800;
23+
}
24+
25+
.syntax-other {
26+
color: red;
27+
}

web/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<link rel="stylesheet" href="css/interface.css"/>
88
<link rel="stylesheet" href="css/treeView.css"/>
99
<link rel="stylesheet" href="css/extras.css"/>
10+
<link rel="stylesheet" href="css/syntax.css"/>
1011
<link rel="stylesheet" href="css/classView.css"/>
1112
<link rel="stylesheet" href="css/joint.min.css"/>
1213
<link rel="stylesheet" href="css/methodCodeView.css"/>

web/js/ClassView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ ClassView.prototype.showMethodCode = function (className, methodName) {
340340
+ (data["arguments"] || "").replace(/,/g, ", ").replace(/:/g, ": ") + ")"
341341
+ (data["returns"] ? ": " + data["returns"] : "");
342342
els.methodDescription.innerHTML = data["description"] || "";
343-
els.methodCode.textContent = data["code"] || "";
343+
els.methodCode.innerHTML = lib.highlightCOS(data["code"] || "");
344344
els.methodViewBounds.style.height =
345345
els.classView.offsetHeight - els.methodViewBounds.offsetTop + "px";
346346
els.methodCodeView.classList.add("active");

web/js/Lib.js

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)