powerful-gpu-52135
03/12/2021, 11:19 PMbright-gpu-74537
03/12/2021, 11:20 PMbright-gpu-74537
03/12/2021, 11:20 PMhaxe
public override function onReady() {
super.onReady();
_textCtrl = cast(this.window, StyledTextCtrl);
if (_lineNumbers == true) {
_textCtrl.setMarginType(0, 1);
_textCtrl.setMarginWidth(0, 32);
_textCtrl.setMarginWidth(1, 16);
}
_textCtrl.text = _text;
_textCtrl.bind(StyledTextCtrlEventType.UPDATEUI, onUpdateUI);
if (_theme == null) {
buildTheme(_themeName);
}
applyFormatting(_lang);
}powerful-gpu-52135
03/12/2021, 11:20 PMbright-gpu-74537
03/12/2021, 11:21 PMpowerful-gpu-52135
03/12/2021, 11:21 PMbright-gpu-74537
03/12/2021, 11:21 PMpowerful-gpu-52135
03/12/2021, 11:21 PMpowerful-gpu-52135
03/12/2021, 11:23 PMbright-gpu-74537
03/12/2021, 11:23 PMbright-gpu-74537
03/12/2021, 11:23 PMpowerful-gpu-52135
03/12/2021, 11:24 PMpowerful-gpu-52135
03/12/2021, 11:35 PMpowerful-gpu-52135
03/12/2021, 11:36 PMbright-gpu-74537
03/13/2021, 7:09 AMbright-gpu-74537
03/13/2021, 8:27 AMpowerful-gpu-52135
03/13/2021, 3:52 PMjson
[
{
"id": "keywords",
"restrictToWords": true,
"rules": [
"func", "let", "mut", "true", "false", "if", "else", "while", "return", "import", "break",
"continue", "null", "for", "in", "when"
]
},
{
"id": "types",
"restrictToWords": true,
"rules": [
"[A-Z][\\w\\$]*"
]
},
{
"id": "operators",
"rules": [
"=", ">", "<", "!", "~", ":", "==", "<=", ">=", "!=",
"&&", "||", "+", "-", "*", "/", "&", "|", "^", "%",
"<<", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "^=",
"%=", "<<=", ">>=", "><"
]
},
{
"id": "brackets",
"rules": [
"[{}()\\[\\]]"
]
},
{
"id": "numbers.float",
"rules": [
"\\d*\\.\\d+([eE][\\-+]?\\d+)?"
]
},
{
"id": "numbers",
"restrictToWords": true,
"rules": [
"[0-9]+"
]
},
{
"id": "delimiters",
"rules": [
"[;,.]"
]
},
{
"id": "strings",
"rules": [
"\""
]
},
{
"id": "comment",
"rules": [
"\\/\\/.*$"
]
}
]powerful-gpu-52135
03/13/2021, 3:52 PMjson
{
"defaults": {
"foreground": "#D4D4D4",
"background": "#252526",
"caret": "#dcdcdc",
"selection": "#334d78"
},
"formats": [
{
"foreground": "#5499D2",
"tags": ["keywords"]
},
{
"foreground": "#4EC9B0",
"tags": ["types"]
},
{
"foreground": "#b5cea8",
"tags": ["numbers", "numbers.float"]
},
{
"foreground": "#B5CEA8",
"tags": ["numbers.hex"]
},
{
"foreground": "#cc6666",
"tags": ["annotations"]
},
{
"foreground": "#608b4e",
"tags": ["comment"]
},
{
"foreground": "#CE9178",
"tags": ["strings"]
}
]
}powerful-gpu-52135
03/13/2021, 3:53 PMpowerful-gpu-52135
03/13/2021, 3:54 PMmut i = 1;
while (i <= 5) {
Sys.println(i);
i = (i + 1);
}
Sys.println(" ");
mut var1 = [1, 2, 3, 4, 5].Iterator();
while var1.hasNext() {
mut v = var1.next();
Sys.println(v);
}
Sys.println(" ");
mut myHash = {string: "hello", axolotl: (1 + 2)};
mut var4 = myHash.Iterator();
while var4.hasNext() {
mut var5 = var4.next();
mut key = var5[0];
mut value = var5[1];
Sys.println(((key >< " ") >< value));
}
Sys.println(" ");
mut var8 = "My String".Iterator();
while var8.hasNext() {
mut char = var8.next();
Sys.println(char);
}magnificent-caravan-75149
03/13/2021, 4:53 PMmagnificent-caravan-75149
03/13/2021, 4:56 PM<grid columns="2" style="margin: 0; padding: 0; ">
<vbox style="margin:0; padding:0;" >
<button id="gc_lot" icon="images/icons/gc/gc_lot.png" styleName="ui" />
<button id="gc_fun" icon="images/icons/gc/gc_fun.png" styleName="ui" />
<button id="gc_money" icon="images/icons/gc/gc_money.png" styleName="ui" />
<button id="gc_opts" icon="images/icons/gc/gc_options.png" styleName="ui" />
</vbox>
<absolute style="margin:0; padding:0;" >
<hbox id="lotSize" left="0" top="0" style="margin:0; padding:0;" >
<image resource="images/icons/gc/arrow.png" height="32" width="5" />
<vbox style="margin:0; padding:0;" >
<button id="gc_tent" icon="images/icons/gc/gc_tent.png" styleName="ui" />
<button id="gc_camper" icon="images/icons/gc/gc_camper.png" styleName="ui" />
<button id="gc_rv" icon="images/icons/gc/gc_rv.png" styleName="ui" />
</vbox>
</hbox>
<vbox id="funStuff" left="0" top="39" >
<button id="gc_restroom" icon="images/icons/gc/gc_restroom.png" styleName="ui" />
<button id="gc_shower" icon="images/icons/gc/gc_shower.png" styleName="ui" />
<button id="gc_swings" icon="images/icons/gc/gc_swings.png" styleName="ui" />
<button id="gc_swim" icon="images/icons/gc/gc_swim.png" styleName="ui" />
</vbox>
</absolute>
</grid>bright-gpu-74537
03/13/2021, 5:01 PMpowerful-gpu-52135
03/13/2021, 5:02 PMpowerful-gpu-52135
03/13/2021, 5:03 PMmagnificent-caravan-75149
03/13/2021, 5:03 PMmagnificent-caravan-75149
03/13/2021, 5:04 PMbright-gpu-74537
03/13/2021, 5:08 PMmagnificent-caravan-75149
03/13/2021, 5:17 PMbright-gpu-74537
03/13/2021, 5:18 PM