ξQuentξ
ξQuentξ
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
I also haave this old script where i tryed to script a color scheme but it failed badly: private Color GetTokenColor(string token) { if (token.TrimStart().StartsWith(":")) return Color.Red; // Color for labels if (IsCommand(token, "echo", "pause", "time", "ping", "cls")) return Color.FromArgb(0, 183, 255); // Command color if (IsCommand(token, "cd", "dir", "rename", "ren", "replace", "xcopy", "del", "move", "rmdir")) return Color.FromArgb(13, 112, 0); // File system command color if (IsBracket(token)) return Color.FromArgb(30, 255, 0); // Bracket color if (IsCommand(token, "powershell", "dxdiag", "chkdsk", "diskpart", "mrt", "explorer", "eventvwr", "taskschd", "taskmgr", "mmc", "bcdedit")) return Color.FromArgb(68, 0, 255); // Special command color if (IsCommand(token, "call", "goto", "errorlevel", "com1", "com2", "com3", "com4", "com", "ipconfig", "cacls", "icacls")) return Color.FromArgb(0, 17, 255); // Another command color return ScriptingPane.ForeColor; // Default color } private bool IsBracket(string token) => token.Contains("(") token.Contains(")") token.Contains("[") token.Contains("]") token.Contains("{") || token.Contains("}"); private bool IsCommand(string token, params string[] commands) { foreach (var command in commands) { if (token.Equals(command, StringComparison.OrdinalIgnoreCase)) return true; } return false; } } }
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
ok
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
im trying to make a code editor but its hard to code the color syntax
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
but i need it as a c# script because it needs to constantly update
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
ok
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
winforms
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
private void ColorizeText() { ScriptingPane.Text = "idk"; //Yes its a Richtextbox }
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
its called "ScriptingPane"
14 replies
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
yes its a richtextbox
14 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
ok
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
maybe is there any programm that migrates from winforms to wpf
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
ok
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
im using richtextbox
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
oh
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
i dunno i need to make something fast
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
currently it sets the scroll at the end of the line which doesn't follow the script pane's scrolling position
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
and this means i want the scroll position of the number counter to be the same as the script pane's
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
i use Winforms*
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
this just means i use Winforms
24 replies
CC#
Created by ξQuentξ on 10/19/2024 in #help
How do i sync 2 Textbox Scrolling Positions i want to make a number counter:
how do i do that :/
24 replies