ξQuentξ
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
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
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