Sub MyTestSub
#IF B4A
' code specific to B4A
'---
'...
#ELSE IF B4J
' code specific to B4J
'---
'...
#END IF
' code common to all platforms
end sub
Having the capability to collapse the B4A section of code would make the sub more readable while in the B4J IDE.
For larger sections probably it's easier to define a #Region where to put all the code specific to a given enviroment.