SciTE comments options behavior Topic is solved

The popular SciTE-based AutoHotkey Script Editor
DanRim
Posts: 85
Joined: 20 Jul 2018, 15:16

SciTE comments options behavior

Post by DanRim » 30 Sep 2020, 16:28

Hello,

Just wondering how to control comments in SciTE. I use these symbols for comments /* */, that allows to close or short the comments size.
The issue I am experiencing that after I open .ahk file again I expect to find those comments closed, but always finding them open. Comments automatically opens. So every time I need to close them again.

Is it way to fix this this comments behavior? I tried to search in menu bars, but could not locate where is that option responsible for comments.

;code example

Code: Select all

/*; this part read every line
words := StrSplit(Haystack, "|") 
for k,v in words
	MsgBox % v 
*/

/*; [u]this part read every line[/u] 

/*
words := StrSplit(Haystack,[" ", "`n", "|"]) ; suveikia kaip explode tik su daugiau variantu
for k,v in words
	if(InStr(v,"@"))
		emails.= v "`n" ; append value and new line to emails 
;~ Msgbox % emails
	FileAppend % emails, C:\Users\abc\Desktop\ahk_stuff\test1.txt
return
*/



Attachments
comments.JPG
comments.JPG (8.4 KiB) Viewed 760 times
User avatar
mikeyww
Posts: 5360
Joined: 09 Sep 2014, 18:38

Re: SciTE comments options behavior

Post by mikeyww » 30 Sep 2020, 22:00

This does not sound like a question about AutoHotkey.
TravisQ
Posts: 27
Joined: 17 May 2015, 23:51

Re: SciTE comments options behavior  Topic is solved

Post by TravisQ » 30 Sep 2020, 22:40

Try
Options > Open User properties

ADD

Code: Select all

fold.on.open=1
Hope this works for you.
gregster
Posts: 5837
Joined: 30 Sep 2013, 06:48

Re: SciTE comments options behavior

Post by gregster » 30 Sep 2020, 22:44

I guess this will not only fold the /* */ block comments, but also { }- code blocks - I don't know if you can limit it to these kind of comments specifically.
DanRim
Posts: 85
Joined: 20 Jul 2018, 15:16

Re: SciTE comments options behavior

Post by DanRim » 01 Oct 2020, 11:36

@TravisQ Thanks. In some ways it does what I need, but it is really annoying that it close all comments including and brackets of function as mentioned @gregster . It seems that solution is just to use another editor.
User avatar
mikeyww
Posts: 5360
Joined: 09 Sep 2014, 18:38

Re: SciTE comments options behavior

Post by mikeyww » 01 Oct 2020, 11:46

Sorry, I was wrong! Don't mind me....
Post Reply

Return to “SciTE4AutoHotkey”