Categories > Coding > C# >
[Help] How do I set a theme for Ace Editor?
Posted
Hello, so I am making an exploit and I need to change the theme for Ace Editor with a button. How do I do this exactly? I couldn't find any information on how to import js files or something like that. - Mark
I play minecraft and sometimes roblox with cheats
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
Replied
I swear if someone calls me incompetent again.
/*Our function*/
public void SetTheme(string input = "")
{
if (Ace) /* set this your Ace... this checks if its loaded/exists */
this.ExecuteScriptAsync("SetTheme", input); /* This runs The SetTheme function within our ace*/
}
/*End of Our function*/
/*
* The usage of this function would be => */ SetTheme("theme-clouds_midnight")
<!---This needs to be in your html file---!>
SetTheme = function(th)
{
editor.setTheme("ace/theme/" + th);
}
Cancel
Post
https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif
Replied
@pepsi How do I make this work? I am using C# Visual Studio 2022 Winforms. Where do I put the code?
Cancel
Post
I play minecraft and sometimes roblox with cheats
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
Replied
@66433First im not the developer of ace
Cancel
Post
https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post