ξQuentξ
ξQuentξ
CC#
Created by ξQuentξ on 10/21/2024 in #help
Anyone knows how to code a Color Syntax?
So i have this empty function that runs 24/7 since it started can anyone make a script that highlights every word that contains "pause" and "test" to the rgb color 0,0,255? im trying to make a code editor Im using WinForm (i know my mistake but i cant reverse it) .Net framework 4.7.2 Function: private void ColorizeText() { }
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:
private void StartParallelLoop() { Task.Run(() => { while (true) { Invoke(new Action(() => { NumberBar.SelectionStart = ScriptingPane.SelectionStart; NumberBar.ScrollToCaret(); // idk how to do that NumberBar.ZoomFactor = ScriptingPane.ZoomFactor; int lineCount = ScriptingPane.Text.Count(c => c == '\n') + 1; StringBuilder lineNumbers = new StringBuilder(); for (int i = 1; i <= lineCount; i++) { lineNumbers.AppendLine(i.ToString()); } NumberBar.Text = lineNumbers.ToString(); })); Thread.Sleep(100); } }); }
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:
private void StartParallelLoop() { Task.Run(() => { while (true) { Invoke(new Action(() => { NumberBar.SelectionStart = ScriptingPane.SelectionStart; NumberBar.ScrollToCaret(); // idk how to do that NumberBar.ZoomFactor = ScriptingPane.ZoomFactor; int lineCount = ScriptingPane.Text.Count(c => c == '\n') + 1; StringBuilder lineNumbers = new StringBuilder(); for (int i = 1; i <= lineCount; i++) { lineNumbers.AppendLine(i.ToString()); } NumberBar.Text = lineNumbers.ToString(); })); Thread.Sleep(100); } }); }
2 replies
CC#
Created by ξQuentξ on 10/18/2024 in #help
I have a problem with the reloading of the text editor.
So i made a text editor for basic scripting programs and when i use the script pane it has this weird reload and blue highlight it affects the scrollbar and it should only update one part not the whole script
5 replies