? Questions about syntax highlighting (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Migrating to a new website for SmileBASIC 4

This is the development website, where we test out new features. This isn't the place you're looking for! Go here

Questions about syntax highlighting

  • #1 ✎ 149 randomouscrap98 Owner Touhou Project Is Awesome! I love Touhou Project! Express Yourself Second Year My account is over 2 years old Website Gardening I like to garden! Hobbies what is it 'This is a comment @START DIM A = &H5 DIM TREE$ = "Evergreen" PRINT "DINGLEBERRIES" SPSET 4,5 ? 5+6/7 GOTO @START Posted Edited by randomouscrap98
  • #2 ✎ 103 12Me21 Forum Moderator Night Person I like the quiet night and sleep late. Express Yourself 'Never gonna give you up <audio src="[url=http://12Me21.github.io/Rick]http://12Me21.github.io/Rick[/url] Astley - Never Gonna Give You Up.mp3" autoplay></audio> press edit and click preview Posted Edited by 12Me21
  • #3 ✎ 149 randomouscrap98 Owner Touhou Project Is Awesome! I love Touhou Project! Express Yourself Second Year My account is over 2 years old Website Gardening I like to garden! Hobbies STR$ ... BEEP... Posted
  • #4 ✎ 149 randomouscrap98 Owner Touhou Project Is Awesome! I love Touhou Project! Express Yourself Second Year My account is over 2 years old Website Gardening I like to garden! Hobbies Posted
  • #5 ✎ 5 Elly Posted
  • #6 ✎ 149 randomouscrap98 Owner Touhou Project Is Awesome! I love Touhou Project! Express Yourself Second Year My account is over 2 years old Website Gardening I like to garden! Hobbies Posted
  • #7 ✎ 29 12Me23 Deep Sleep Hidden Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Posted
  • #8 ✎ 103 12Me21 Forum Moderator Night Person I like the quiet night and sleep late. Express Yourself function a,b,\ cls cls wait=1 ?wait wait 1,,,, ?&h1234_5678 LOOP CASE X WHEN 1: WHEN 2: OTHERWISE ENDCASE ENDLOOP oh darn \ is yen ?MAINCNT LOOP=1 function a,b,\ cls BGSCREEN TSCREEN STOP?MAINCNT LOOP=1 function a,b,\ cls BGSCREEN TSCREEN STOP?MAINCNT LOOP=1 function a,b,\ cls BGSCREEN TSCREEN STOP Posted Edited by 12Me21
  • #9 ✎ 103 12Me21 Forum Moderator Night Person I like the quiet night and sleep late. Express Yourself DEF DOUBLE_ALL * OUT * IF DEFARGC() != DEFOUTC() THEN STOP "Number of inputs and outputs must match" END FOR I=0 TO DEFOUTC()-1 DEFOUT I, DEFARG(I)*2 NEXT END DOUBLE_ALL 1,2,3 OUT A,B,C PRINT A,B,C '2 4 6 DEF DOUBLE_ALL * OUT * IF DEFARGC() != DEFOUTC() THEN STOP "Number of inputs and outputs must match" END FOR I=0 TO DEFOUTC()-1 DEFOUT I, DEFARG(I)*2 NEXT END DOUBLE_ALL 1,2,3 OUT A,B,C PRINT A,B,C '2 4 6 Posted
  • #10 ✎ 103 12Me21 Forum Moderator Night Person I like the quiet night and sleep late. Express Yourself (modified SB font to fix ,>}\) @font-face { font-family: 'SmileBASIC'; font-weight: 400; font-style: normal; src: url('https://12Me21.github.io/external/SMILEBASIC.woff2') format('woff2'), url('https://12Me21.github.io/external/SMILEBASIC.woff') format('woff'); } more css /* example theme */ /* NOTE: "function" means "built-in function OR VARIABLE" (actual functions use the "statement" classname) This is for backwards compatibility with the old CSS. old SBhighlight couldn't tell functions and variables apart, and "function" was used for all builtins. */ .bbcode code { font-family: monospace !important;/**/ color: rgb(198,175,157); /* default text color (for non-highlighted sections) */ background-color: rgb( 21, 16, 14); /* code block background color */ } .bbcode code > span { font-family: monospace !important;/**/ background-color: transparent; /* reset background color (don't change this probably) */ } .bbcode code > .keyword {color:#7BB5F7;font-weight:bolder;} /* keywords (including TO and STEP, when not used as variables) */ .bbcode code > .variable { /* all variables */ color:#FFDDEE; margin-right:0.1em; margin-left:-0.1em; } .bbcode code > .statement{color:#BC7BFB;font-weight:bold;} /* all functions */ .bbcode code > .label {color:#F7A500;} /* labels (not label strings) */ .bbcode code > .string {color:#A5ADA5;} /* strings (including label strings) */ .bbcode code > .comment {color:#10BD42;} /* comment (not REM) */ .bbcode code > .operator {color:#FFFFBB;} /* operators (including AND DIV etc.) */ .bbcode code > .number {color:#F77BB5;} /* numbers (including TRUE and FALSE) */ .bbcode code > .name {color:#FF6010;} /* name of DEF */ /* code.sbhighlight > .equals { /* Assignment = */ .bbcode code > .function.variable {color:#DDDDFF;} .bbcode code > .function.statement {color:#7B7BF7;} .bbcode code > .function {font-style:italic;} /* builtin functions and system variables (in addition to .statement and .variable) */ /*.bbcode code > .to-step { /* TO and STEP, when not used as variables, (in addition to .keyword) */ /*.bbcode code > .word-operator { /* AND, DIV, etc. (in addition to .operator) */ /*.bbcode code > .def { /* DEF (in addition to .keyword) */ /*.bbcode code > .label-string { /* label strings (in addition to .string) */ /*.bbcode code > .true-false { /* TRUE and FALSE (in addition to .number) */ Posted Edited by 12Me21
  • #11 ✎ 103 12Me21 Forum Moderator Night Person I like the quiet night and sleep late. Express Yourself (the syntax highlighting is updated on the randomouscrap98 subdomain only) Posted