command.name.1.main.lua=Run in Love
command.1.main.lua=love $(FileDir)
which adds new tool option just below "Go" with "Run in Love" that works for main.lua? Was there specific reason to overwrite defaults? I just found that thread (quite old thread already) when I was looking to see how others here use SciTe (if they use it). For example I have additional 3 commands:
command.name.1.main.lua=Run in Love 0.5.0
command.1.main.lua=love-05 $(FileDir)
command.name.2.main.lua=Run in Love 0.6.2
command.2.main.lua=love $(FileDir)
command.name.3.main.lua=Run in Love Hg
command.3.main.lua=love-hg $(FileDir)
and it works quite OK, while I can still edit and run other, non-löve lua files easily
I'm surprised these windows users didn't realise that installing love doesn't create a batch command named love... Or does it? No, it does not.
But anyway,
# LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE
keywordclass7.lua5=love.audio love.event love.filesystem love.font love.graphics love.image \
love.joystick love.keyboard love.mouse love.physics love.sound love.thread love.timer \
love.audio.getNumSources love.audio.getOrientation love.audio.getPosition love.audio.getVelocity \
love.audio.getVolume love.audio.newSource love.audio.pause love.audio.play love.audio.resume love.audio.rewind \
love.audio.setOrientation love.audio.setPosition love.audio.setVelocity love.audio.setVolume love.audio.stop \
love.event.poll love.event.pump love.event.push love.event.wait \
love.font.newFontData love.font.newGlyphData love.font.newRasterizer \
love.graphics.checkMode love.graphics.circle love.graphics.clear love.graphics.draw love.graphics.drawq \
love.graphics.getBackgroundColor love.graphics.getBlendMode love.graphics.getCaption love.graphics.getColor \
love.graphics.getColorMode love.graphics.getFont love.graphics.getHeight love.graphics.getLineStipple love.graphics.getLineStyle \
love.graphics.getLineWidth love.graphics.getMaxPointSize love.graphics.getModes love.graphics.getPointSize love.graphics.getPointStyle \
love.graphics.getScissor love.graphics.getWidth love.graphics.isCreated love.graphics.line love.graphics.newFont love.graphics.newFramebuffer \
love.graphics.newImage love.graphics.newImageFont love.graphics.newParticleSystem love.graphics.newQuad love.graphics.newScreenshot \
love.graphics.newSpriteBatch love.graphics.point love.graphics.polygon love.graphics.pop love.graphics.present love.graphics.print \
love.graphics.printf love.graphics.push love.graphics.rectangle love.graphics.reset love.graphics.rotate \
love.graphics.scale love.graphics.setBackgroundColor love.graphics.setBlendMode love.graphics.setCaption \
love.graphics.setColor love.graphics.setColorMode love.graphics.setFont love.graphics.setIcon love.graphics.setLine \
love.graphics.setLineStipple love.graphics.setLineStyle love.graphics.setLineWidth love.graphics.setMode \
love.graphics.setPoint love.graphics.setPointSize love.graphics.setPointStyle love.graphics.setRenderTarget \
love.graphics.setScissor love.graphics.toggleFullscreen love.graphics.translate love.graphics.triangle \
love.image.newEncodedImageData love.image.newImageData \
love.joystick.close love.joystick.getAxes love.joystick.getAxis love.joystick.getBall love.joystick.getHat \
love.joystick.getName love.joystick.getNumAxes love.joystick.getNumBalls love.joystick.getNumButtons \
love.joystick.getNumHats love.joystick.getNumJoysticks love.joystick.isDown love.joystick.isOpen love.joystick.open \
love.keyboard.getKeyRepeat love.keyboard.isDown love.keyboard.setKeyRepeat \
love.mouse.getPosition love.mouse.getX love.mouse.getY love.mouse.isDown love.mouse.isGrabbed \
love.mouse.isVisible love.mouse.setGrab love.mouse.setPosition love.mouse.setVisible
# LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE
# LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE
keywords6.$(file.patterns.lua)=$(keywordclass7.lua5)
# LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE
Done, LOVE function are now blue
I still haven't found a way to color the function red instead of blue. Can someone help here ?
I've tried using "keywords27" and making my own color but without success :/
On a side note, and for those like me who don't always use the search function, Notepad++ can launch LOVE code too.
Go in Run=>Run...
Find your love.exe, quote it, and add the current directory var from notepad++ on the end like that :
I realize it's been a long time since this thread has been active, but I've only been using Love a few months, and I like the fact that sciTE will run my love projects. But there is an annoying little thing and that is I always have to switch to the main.lua tab before running my program. Does anyone know of a way to tell it to run love with main.lua no matter what file is in focus?
-- is what makes it run love at all so I'm thinking I could do something in here that just grabs main.lua just as long as the currently selected file is in the same folder (maybe command.go.main.lua could be switched back to command.go.*.lua and then in "$(FileDir)\main.lua" maybe?
And I just tried that and that didn't work, so I'm not sure, any suggestions?
LÖVE doesn't get a main.lua as argument, it gets a .love or the directory the main.lua is in as argument.
Awesome, this worked beautifully thanks!
Larsii30 wrote:Is it possible to change the font and the syntex styling like in NP++ ?
If you save as a .lua file it has it's own syntax highlighting, but I believe if you go into Options->Open lua properties -- you may be able to modify it further.