Recent

Author Topic: SynEdit Lua syntax highlight  (Read 11446 times)

Rave

  • Full Member
  • ***
  • Posts: 170
SynEdit Lua syntax highlight
« on: August 05, 2010, 02:59:36 pm »
Anyone knows if there is SynEdit component for Lua syntax highlight? If so - where I can get it, because in near future i may be forced to make Lua editor and want to use Lazarus along with Synedit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11338
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit Lua syntax highlight
« Reply #1 on: August 05, 2010, 03:04:33 pm »
I don't know if any exists...

There may be for the original SynEdit:
http://sourceforge.net/apps/mediawiki/synedit/index.php?title=SynEdit_Home_Page

But they would not be compatible with the SynEdit in lazarus => and I don't know how well that original SynEdit will compile with Lazarus...

There is a highlighter that allows to configure your own keywords => but they will not be context sensitive...

Rave

  • Full Member
  • ***
  • Posts: 170
Re: SynEdit Lua syntax highlight
« Reply #2 on: August 05, 2010, 03:29:21 pm »
hm... So maybe one of Lazarus' devs can write TSynLua? Because I don't know lua syntax just will be need to make editor, and don't want to learn something that i probably never use.

parcel

  • Full Member
  • ***
  • Posts: 143
Re: SynEdit Lua syntax highlight
« Reply #3 on: December 07, 2013, 07:43:53 am »
I convert for fpc from luaforge 'luaedit' source.  :-[

https://github.com/luaforge/luaedit


TheBlackSheep

  • Jr. Member
  • **
  • Posts: 93
Re: SynEdit Lua syntax highlight
« Reply #4 on: December 07, 2013, 11:34:22 am »
There's a highlighter already;

http://sourceforge.net/p/synedit/user-components-patches/11/

although it might need bringing up to date... :)

TheBlackSheep

TheBlackSheep

  • Jr. Member
  • **
  • Posts: 93
Re: SynEdit Lua syntax highlight
« Reply #5 on: December 07, 2013, 11:51:28 am »
also there's this project...http://vclua.99k.org/

Sourcecode is here;
http://sourceforge.net/projects/vclua/

looks like 4.2 (latest version) doesn't have the absolute latest source for the editor - but 4.1 appears to (Lazarus source and has a Lua SynEdit file);

http://sourceforge.net/projects/vclua/files/vclua-v0.4.1/

parcel

  • Full Member
  • ***
  • Posts: 143
Re: SynEdit Lua syntax highlight
« Reply #6 on: December 07, 2013, 02:51:07 pm »
also there's this project...http://vclua.99k.org/

Sourcecode is here;
http://sourceforge.net/projects/vclua/

looks like 4.2 (latest version) doesn't have the absolute latest source for the editor - but 4.1 appears to (Lazarus source and has a Lua SynEdit file);

http://sourceforge.net/projects/vclua/files/vclua-v0.4.1/

Good project  :o

parcel

  • Full Member
  • ***
  • Posts: 143
Re: SynEdit Lua syntax highlight
« Reply #7 on: December 07, 2013, 02:57:44 pm »
There's a highlighter already;

http://sourceforge.net/p/synedit/user-components-patches/11/

although it might need bringing up to date... :)

TheBlackSheep
This Highlighter is compatible with pre-lua 5.1, some modification need for lazarus :)

(edit)
 converted it to fpc, but some bugs in original source.

« Last Edit: December 08, 2013, 04:46:14 am by parcel »

 

TinyPortal © 2005-2018