PureBasic Forum
https://www.purebasic.fr/english/

Strange behavior. Odd code injected when exiting editor.
https://www.purebasic.fr/english/viewtopic.php?f=7&t=73258
Page 1 of 1

Author:  shadowvox [ Wed Jul 24, 2019 7:41 pm ]
Post subject:  Strange behavior. Odd code injected when exiting editor.

This has happened to me a few times, and it's kinda frustrating. When I close the editor after saving, sometimes code is added to the source.

Example (this one happened today)...

Code:
; CursorPosition = 702
; FirstLine = 690
; Folding = --
; EnableXP
; Executable = F:\RepairLog.exe
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = ----
; EnableXPPng = - EnableXPPng = - = logline()Log.exe
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = -
; EnableXPPng = - EnableXPPng = - = logline()ableXPPng = - EnableXPPng = -g = - EnableXPPng = -
; EnableXPPng = - EnableXPPng = - = logline()- EnableXPPng = - = logline()e()
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = --
; EnableXPPng = - EnableXPPng = - = logline()Log.exe
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = -
      EndIf
    EndIf
  Until Event = #PB_Event_CloseWindow
EndProcedure


All the above was obscurely added when I exited. None of that, except for "logline()" is a part of my code. Anyone know why?

__________________________________________________
Code tags added
25.07.2019
RSBasic

Author:  Bitblazer [ Wed Jul 24, 2019 10:13 pm ]
Post subject:  Re: Strange behavior. Odd code injected when exiting editor.

Inside the Purebasic IDE check the "File->preferences->editor" and it should have in an option to "save settings to" and the default is "end of file".

Author:  shadowvox [ Wed Jul 24, 2019 10:42 pm ]
Post subject:  Re: Strange behavior. Odd code injected when exiting editor.

Bitblazer wrote:
Inside the Purebasic IDE check the "File->preferences->editor" and it should have in an option to "save settings to" and the default is "end of file".


Thank you very much

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/