Splitting code across lines?
a macro to basically shorten code. not for multilines. 
How "dynamic" do you need it ? Otherwise id suggest you simply wrap them into teh Macro and call it. Otherwise this will take some thinking ( which i have to do after work later.. gah 4am and i cant sleep ... prolly fricken meds :/
Thalius

How "dynamic" do you need it ? Otherwise id suggest you simply wrap them into teh Macro and call it. Otherwise this will take some thinking ( which i have to do after work later.. gah 4am and i cant sleep ... prolly fricken meds :/
Thalius
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
"
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!

- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
If there was an option in the IDE to enable Scintilla word wrap then this would possibly solve this problem.
All the code that would be needed is:
If the marker at the end of the wrapped line looked confusing then maybe it should be at the front with:
All the code that would be needed is:
Code: Select all
ScintillaSendMessage(gadget,#SCI_SETHSCROLLBAR,#False)
ScintillaSendMessage(gadget,#SCI_SETWRAPMODE,#SC_WRAP_WORD)
ScintillaSendMessage(gadget,#SCI_SETWRAPVISUALFLAGS,#SC_WRAPVISUALFLAG_END)
Code: Select all
SC_WRAPVISUALFLAG_START
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
I am afraid it's not that easy ...DoubleDutch wrote:All the code that would be needed is:Code: Select all
ScintillaSendMessage(gadget,#SCI_SETHSCROLLBAR,#False) ScintillaSendMessage(gadget,#SCI_SETWRAPMODE,#SC_WRAP_WORD) ScintillaSendMessage(gadget,#SCI_SETWRAPVISUALFLAGS,#SC_WRAPVISUALFLAG_END)
Some highlighting code must also be modified (at least in jaPBe : adding these few lines is not enough).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Very nice, but in case of error the compiler would report a 'wrong' error line I guess.Kwaï chang caïne wrote:NETMAESTRO shares a good solution![]()
http://www.purebasic.fr/english/viewtop ... sc&start=0
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
I did a couple of tests on my stuff and it appears to be completely transparent to the application. Its all done at draw time (it reports as being the same line # and everything).Some highlighting code must also be modified
On the line number column display, it skips lines that are continued.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
I made a slight patch for the PureBasic editor here:
http://www.purebasic.fr/english/viewtop ... 962#225962
It seems to work ok, but be careful - you never know!
http://www.purebasic.fr/english/viewtop ... 962#225962
It seems to work ok, but be careful - you never know!
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Very Long Source Statement.
I am new in PB, and I found an issue that I could not break down a long source statement very unconfortable. But not a big issue. I suggest that in source editor screen, those long statement can be seen continuous breaking down like in the rtf editor. but internally it continue as a single long statement.
Thanks
Thanks