Loading ...
Sorry, an error occurred while loading the content.

15263RE: Block code highlighting

Expand Messages
  • Stephane Rosa
    Sep 6, 2000
      On 06-Sep-00 Geoffrey Gallaway wrapped up these bytes together:
      > Hope people don't mind me posting this here. I've posted to comp.editors
      > with little response...
      >
      > I've been looking for a way to get vim (especially gvim) to do syntax
      > highlighting of code blocks. What I want is a darker (or lighter depending
      > on the current bg settings) background shade block around certain
      > structures (while, if, sub, do, for, etc) and continuly get darker for
      > recursing structures. I created an example of what I wanted this to look
      > like in staroffice and took a .png screenshot, it can be viewed at
      > "http://www.sloth.org/~geoffeg/highlight.png" and a text version that makes
      > little sense is included below. The lines on the boxes are not important
      > and
      > are there just to better show what I'm trying to convey..
      >
      > This would be usefull in a few ways.. It definetly shows you where you've
      > screwed up and left a brace off (maybe the rest of a buffer should go red
      > after a lack of closing brace) and it helps to clarify deeply nested code.
      >
      > Any ideas?

      No idea, but my full psychological support ;-) This is a VERY great
      idea, especially when coding 1000 lines source files with 5-6 levels.
      Would be very handy to be visual like this.

      Thankx
      Stephane


      >
      > Geoff
      >
      >
      > ----------------------------------------------------------
      >|for ($i=1; $i < 10; $i++) { # 10% grey block |
      >| print "this is the first for\n"; # 10% grey block |
      >| # blah blah blah # 10% grey block |
      >| # blah blah blah # 10% grey block |
      > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      >| for (1..10) { # 20% grey block |
      >| print "hello\n"; # 20% grey block |
      >| } # 20% grey block |
      > - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      >|} # 10% grey block |
      > ----------------------------------------------------------

      ---
      SILICON GRAPHICS EUROPEAN MANUFACTURING CENTER
      ##############################################################
      Stephane Rosa Tel : +41 (0)32 843-3638
      Business Analyst Fax : +41 (0)32 843-3909
      APS/FP Project GSM : +41 (0)79 448-5335
      --------------------------------------------------------------
      ircnoc.neu.sgi.com SGI Intranet IRC : EuroOper on #irchelp
      irc.stealth.net Euro-IRCNet IRC : Clipper on #radionet
    • Show all 11 messages in this topic