I don't know why PB IDE can't automatically handle the conversion when pasting copied contents from Microsoft Edge.
I can't be the only one using Microsoft Edge on here...

Highlander.... There can be only oneThunder93 wrote:I can't be the only one using Microsoft Edge on here...
I like to help people on the PB forums to troubleshoot codes. However I'm finding it annoying as Microsoft Edge user to need be jumping to hoops now to have PB not complain about syntax error(S) on copied and pasted codes into PB IDE. I'm not going to switch browsers, so I guess this is a conundrum.davido wrote:The problem appears to be non-breaking space characters interspersed with normal spaces.
davido wrote:Perhaps the IDE could accept both?
Microsoft Edge is simply too advanced for us cavemen.Thunder93 wrote:You guys treating this as if we living still in the stone ages. whatever.........!
You could write a special tool for the PB IDE to paste your clipboard content by first replacing the non-breaking spaces with spaces. You would just compile it to an executable and link it into the PB IDE tools.Thunder93 wrote:The only problem I see is with PB IDE for not accepting non-breaking space interspersed with normal spaces. However PB IDE wants to cry syntax error.
What's with the closed-mindedness that I'm receiving here? What is wrong with accepting this style in PB IDE? You guys treating this as if we living still in the stone ages. whatever.........!
Code: Select all
; Tool "InsertClipFromME" This version written by Demivec, inspired by Michael Vogel and kenmo
; Replaces Non-Breaking Space ($A0) with space in clipboard text before pasting it in a source.
;
; Command Line: InsertClipFromME.exe
; Working Directory: %COMPILEFILE
; Name: Insert Clip from ME
; Run Hidden
SCID = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
Orig.s = GetClipboardText()
If (SCID And Orig)
Mod.s = ReplaceString(Orig, #CRLF$, #LF$)
Mod = ReplaceString(Mod, Chr($A0), Space(1))
SetClipboardText(Mod)
SendMessage_(SCID, #SCI_PASTE, 0, 0)
SetClipboardText(Orig)
EndIf
Well, it's wrong because frankly it's not a PureBasic IDE problem. The bug is solely with Edge, and PureBasic doesn't need to change to fix another app's bugs. Once you do that, you need to start doing it for any browser or app that doesn't present the correct clipboard text to PureBasic properly. Where does it end?Thunder93 wrote:What is wrong with accepting this style in PB IDE?
Code: Select all
55 73 65 50 4E 47 49 6D 61 67 65 45 6E 63 6F 64 65 72 28 29