• Lucid Dreaming - Dream Views




    Results 1 to 17 of 17
    1. #1
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935

      Know a good syntax highlighter?

      Does anyone know a good text editor with an easy to understand grammar? I'd like to write one for the script engine that my company uses, but so far the ones that I've seen have impossibly hard to understand grammars of XML based crap. So far I've tried Code::Blocks, Jedit and gEdit. It also needs to be cross platform.

    2. #2
      Rational Spiritualist DrunkenArse's Avatar
      Join Date
      May 2009
      Gender
      Location
      Da Aina
      Posts
      2,941
      Likes
      1092
      I used SciTE for a while. It uses plain text for configuration so you might like it since you don't like XML. I never wrote a syntax highlighter with it but I hacked the C++ one into a javascript one and it wasn't that bad. That was years ago though so I might not be able to help you much.

      On the whole though, I think that it's usable but sucks. Quit worrying and learn to love the XML. I hope I don't get an infraction for trolling for that last sentence
      Previously PhilosopherStoned

    3. #3
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      I love XML, I mean it's no JSON, it's just the way that they design the XML. You can't make a grammar in XML, you can only define keywords and such.

      Oh, SciTE uses SCIntilla. Uhg

    4. #4
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      NotePad++ is effing amazing.

    5. #5
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      That's also got a Scintilla backend and uses the Windows API.

    6. #6
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Vim
      Extensible syntax highlighting with a fairly easy to follow format

      Here's the documentation on writing custom synatx highlighting files
      http://vimdoc.sourceforge.net/htmldoc/usr_44.html

      Also, here's the standard C & C++ syntax files

      c.vim
      Spoiler for c.vim:


      cpp.vim
      Spoiler for cpp.vim:
      (\_ _/)
      (='.'=)
      (")_(")

    7. #7
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Excellent, I love vim Now that's a grammar.
      Last edited by ninja9578; 09-18-2009 at 02:26 AM.

    8. #8
      Veteran of the DV Wars Man of Steel's Avatar
      Join Date
      Mar 2007
      LD Count
      ~35
      Gender
      Location
      Houston, TX
      Posts
      4,553
      Likes
      94
      I can never make up my mind which code editor to use, so I have like half a dozen I switch between, and more installed. Notepad++, PSPad, Komodo Edit, gVim, Emacs, HTML-Kit, Aptana Studio, and Screem and Bluefish in Ubuntu. In addition to gedit, obviously.

      I doubt this will help you, just thought I'd provide more options. I'm still trying to get the hang of gVim and Emacs. I'm used to Notepad derivatives.

    9. #9
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      I'm a big vi (well, vim) supporter
      As far as technical text-editors go, you can't get much more capable, or more extendable.

      Console based, so you're not hampered by a GUI
      (think ssh to a server half-way round the world)

      The standard *nix job controls give you access to multiple instances, allowing editing of any number of files simultaneously

      Coupled with screen, you can detach and re-attach console sessions between different systems / across local reboots, etc.

      GUI editors have their place, but can't hope to compete with something like vim
      (\_ _/)
      (='.'=)
      (")_(")

    10. #10
      Member Achievements:
      1 year registered Veteran First Class 5000 Hall Points

      Join Date
      Sep 2004
      Gender
      Location
      Seattle, WA
      Posts
      2,503
      Likes
      217
      +1 for vim.

    11. #11
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      but the more important question....

      Indentation - tabs or spaces?
      (\_ _/)
      (='.'=)
      (")_(")

    12. #12
      Veteran of the DV Wars Man of Steel's Avatar
      Join Date
      Mar 2007
      LD Count
      ~35
      Gender
      Location
      Houston, TX
      Posts
      4,553
      Likes
      94
      Tabs. Definitely tabs. For several reasons, most of which probably wouldn't make any sense if I tried to explain them, but still.

    13. #13
      khh
      khh is offline
      Remember Achievements:
      1000 Hall Points Veteran First Class
      khh's Avatar
      Join Date
      Jun 2009
      Gender
      Location
      Norway
      Posts
      2,482
      Likes
      1309
      Personally I only use three editors with syntax highlighting: Notepad++, TextPad and Kwrite. Vim is too... advanced, and thus difficult. If I need syntax highlighting on a remote SSH-server, I'd rather mount the folder and use a local editor.

      Quote Originally Posted by Man of Steel View Post
      Tabs. Definitely tabs. For several reasons, most of which probably wouldn't make any sense if I tried to explain them, but still.
      Defiantly.
      April Ryan is my friend,
      Every sorrow she can mend.
      When i visit her dark realm,
      Does it simply overwhelm.

    14. #14
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Quote Originally Posted by Ynot View Post
      but the more important question....

      Indentation - tabs or spaces?
      Depends on what you mean, I like pressing the tab key, but having the editor insert spaces instead of \t.

    15. #15
      Member Achievements:
      1 year registered Veteran First Class 5000 Hall Points

      Join Date
      Sep 2004
      Gender
      Location
      Seattle, WA
      Posts
      2,503
      Likes
      217
      Spaces.

      Though really, the IDEAL way would be, you configure your source control client how YOU want to download your source, and it handles the conversion for you, so your code is always in the format you want, and it doesn't matter what other people do.

    16. #16
      Jellyfish, not jam.
      Join Date
      Dec 2008
      Gender
      Location
      Vancouver, BC, Canada
      Posts
      8
      Likes
      0
      I personally have been using a combo of Notepad++ and Editra. Editra is technically still in Beta, but it's so far worked very well for my (relatively low) needs.
      And life is also too short to not try eating feces at least once. -Delilah

    17. #17
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      How easy is it to write a syntax grammar? I'm not going to use it for a preexisting language, I want it for LiveScript, my company's internal scripting language.

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •