String content = await editor.ExecuteScriptFunctionAsync('GetText') įile.WriteAllText(dialog.
Return await webView2.ExecuteScriptAsync(script) Script += JsonConvert.SerializeObject(parameters) Public static async Task ExecuteScriptFunctionAsync(this WebView2 webView2, string functionName, params object parameters)įor (int i = 0 i < parameters.Length i++) Heres the problem when i save file the text i wrote inside ace editor if i try to save file it doesnt save properly like if i add spaces into ace editor its gonna look like this '\r\n' i dont know why and is there any way to fix it? String content = editor.InvokeScript('getValue').ToString() įile.WriteAllText(dialog.FileName, content) First visit the Google Fonts website to browse a massive list of fonts that include popular options like Roboto or Open Sans. To incorporate a web-safe Google font into your webpage’s CSS style sheet. SaveFileDialog dialog = new SaveFileDialog() ĭialog.Filter = 'Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*' How To Add Google Fonts To Your HTML And CSS. Var x = 'All this is syntax highlighted' Į('ace/mode/javascript')
I was using that code below to save the code in local file I want to save the the text that above by using a button (savefiledialog) I was using ace editor in web browser but i had so many problems with it