testing line numbers

just testing… so please ignore this post


--Useful for debugging, Prints all the tables
function g:printTable ()
for k,v in pairs ( _properties ) do
print ( " --> " … k … " = " … v )
end
end [/lua] [import]uid: 3826 topic_id: 13536 reply_id: 313536[/import]

this was just to test if some code was at a particular line number to synch the line number to that rather than have each block of code start at 1.

Ignore this post too… [import]uid: 3826 topic_id: 13536 reply_id: 49715[/import]

lol how it has been started from line 200 [import]uid: 12482 topic_id: 13536 reply_id: 49716[/import]

it can start from any number, let’s say I was referring to line 245 in myfile.lua, then I can highlight it as


local theVar1 = “Variable”

local music = myStage.addMusic(“intro”,“thefile.mp3”)
myStage.play(“intro”)
--[/lua]

so it is not about 200, it can be anything

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13536 reply_id: 49717[/import]

ohh i got that when i saw line 200 from start i am asking with which tag i can specify line number [import]uid: 12482 topic_id: 13536 reply_id: 49721[/import]

it’s all there in the link just above the save and preview buttons, very few people look at that. the link is here

for those that do not want to look at the other codes, the quick one for line numbers is

\<lua start="200"\>
--the code comes here
\</lua\>

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13536 reply_id: 49727[/import]

great :slight_smile: [import]uid: 12482 topic_id: 13536 reply_id: 49731[/import]