From: Simon Strandgaard Date: 2004-07-07T00:08:51+09:00 Subject: Re: [ANN] aeditor 1.0 released On Monday 05 July 2004 02:13, Simon Strandgaard wrote: > screenshots: > http://aeditor.rubyforge.org/wiki/wiki.pl?MainThemes I hope I have fixed the font issues, so that it now works on windows. download: http://rubyforge.org/frs/download.php/936/aeditor-1.1.tar.gz I have also added a fontdialog.. so you can choose your own font. If you give it a shot, then please tell me how it works out. I am especially curious to if it works on windows. Ideas for improvements are very welcome.. If you manage to make a nicer theme then please share the colors. If something sux or is unacceptable slow, then please also contact me. I hope I havn't dissapointed anyone. > dependency#1, iterator: > http://rubyforge.org/frs/download.php/703/iterator-0.8.tar.gz > > dependency#2, fxruby > http://fxruby.sourceforge.net/ > If you are on a windows box it may be possible that fxruby already > are installed. > > on windows there are font problems.. you can make me happy if you can > make solve this problem. Thanks in advance. > > I have attached my ~/.aeditor file, which may be interesting to you. > > -- > Simon Strandgaard > > mode :ruby do |m| > m.tabsize = 2 > m.file_suffixes = %w(rb) > m.lexer = :ruby > m.cursor_through_tabs = true > end > > mode :c do |m| > m.tabsize = 4 > m.file_suffixes = %w(c cpp cxx cc h hpp hxx hh) > m.cursor_through_tabs = false > end > > theme_blue = { > > :ivar1 => [[55, 75, 215], [40, 50, 120]], > :mcomment_tab => [[30, 30, 120], [0, 0, 0]], > :endoffile_tab => [[83, 83, 97], [0, 0, 0]], > :string1 => [[65, 85, 225], [0, 0, 0]], > :ident => [[55, 75, 215], [90, 80, 80]], > :string => [[65, 85, 225], [30, 80, 0]], > :keyword => [[60, 80, 220], [0, 0, 0]], > :any => [[60, 80, 220], [30, 40, 20]], > :ivar => [[60, 80, 200], [0, 0, 0]], > :tab => [[30, 70, 190], [30, 40, 20]], > :regexp => [[30, 80, 0], [165, 185, 25]], > :space => [[60, 80, 220], [30, 40, 20]], > :gvar => [[160, 180, 100], [90, 0, 0]], > :heredoc => [[80, 60, 220], [30, 40, 20]], > :regexp1 => [[60, 80, 180], [165, 185, 25]], > :out => [[60, 60, 60], [180, 100, 100]], > :dot => [[60, 80, 205], [0, 0, 0]], > :symbol => [[30, 80, 220], [90, 80, 80]], > :comment => [[60, 80, 120], [0, 0, 0]], > :heredoc_tab => [[30, 70, 190], [30, 40, 20]], > :punct => [[30, 80, 220], [120, 120, 120]], > :empty => [[30, 30, 100], [0, 0, 0]], > :dot1 => [[60, 80, 220], [0, 0, 0]], > :mcomment => [[60, 80, 120], [0, 0, 0]], > :endoffile => [[100, 100, 100], [0, 0, 0]], > :number => [[65, 85, 225], [30, 80, 0]] > > } > > theme_gvim = { > > :ivar1 => [[55, 75, 215], [40, 50, 120]], > :mcomment_tab => [[197, 197, 197], [231, 231, 231]], > :endoffile_tab => [[209, 209, 209], [209, 209, 209]], > :string1 => [[231, 231, 231], [0, 138, 142]], > :ident => [[231, 231, 231], [0, 138, 142]], > :string => [[231, 231, 231], [97, 101, 97]], > :keyword => [[231, 231, 231], [158, 32, 239]], > :any => [[231, 231, 231], [30, 40, 20]], > :ivar => [[231, 231, 231], [0, 138, 142]], > :tab => [[231, 231, 231], [231, 231, 231]], > :regexp => [[30, 80, 0], [165, 185, 25]], > :space => [[231, 231, 231], [30, 40, 20]], > :gvar => [[160, 180, 100], [90, 0, 0]], > :heredoc => [[231, 231, 231], [97, 101, 97]], > :regexp1 => [[60, 80, 180], [165, 185, 25]], > :out => [[60, 60, 60], [180, 100, 100]], > :dot => [[231, 231, 231], [0, 0, 0]], > :symbol => [[231, 231, 231], [0, 138, 142]], > :comment => [[231, 231, 231], [0, 0, 255]], > :heredoc_tab => [[209, 209, 209], [207, 211, 207]], > :punct => [[231, 231, 231], [0, 0, 0]], > :empty => [[30, 30, 100], [0, 0, 0]], > :dot1 => [[60, 80, 220], [0, 0, 0]], > :mcomment => [[231, 231, 231], [0, 0, 255]], > :endoffile => [[231, 231, 231], [0, 0, 255]], > :number => [[231, 231, 231], [97, 101, 97]] > > } > > def theme_import(theme_hash, name=nil) > name ||= :imported > theme name do |t| > theme_hash.each do |key, (bg, fg)| > t.set_rgb_pair key, bg, fg > end > end > end > > theme_import(theme_blue, 'blue') > theme_import(theme_gvim, 'gvim') > > puts "done loading config file"