luikore-cici 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +8 -8
- data/examples/scintilla.rb +3 -1
- data/lib/cici/Scintilla.dll +0 -0
- data/lib/cici/mingw32/ext.so +0 -0
- data/lib/cici/mswin32_90/ext.so +0 -0
- data/lib/cici/scintilla.rb +1 -2
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -6,18 +6,18 @@ No other prepared libraries needed, that is -- No Qt, Gtk, Mfc ...
|
|
|
6
6
|
|
|
7
7
|
Light and small with nice efficiency.
|
|
8
8
|
|
|
9
|
-
==
|
|
9
|
+
== install
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
Ruby-1.9.1-mswin32-90 || Ruby-1.9.1-mingw32
|
|
11
|
+
Require ruby 1.9.1, either ruby-1.9.1-mswin32_90 or ruby-1.9.1-mingw32 is OK.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
http://github.com/
|
|
13
|
+
You can get one from
|
|
14
|
+
http://github.com/luikore/cici/downloads
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
Or download from
|
|
17
|
+
http://rubyinstaller.org/downloads
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
then:
|
|
20
|
+
gem install luikore-cici --source=http://gems.github.com
|
|
21
21
|
|
|
22
22
|
Currently the mingw32 version does not support images.
|
|
23
23
|
|
data/examples/scintilla.rb
CHANGED
|
@@ -21,7 +21,9 @@ view [cx, cy], title: 'Scintilla', layout: :zoom do |v|
|
|
|
21
21
|
@s.text = File.read(__FILE__).encode 'utf-8' # read in self
|
|
22
22
|
@s.indent = 2 # auto indent 2 chars when needed
|
|
23
23
|
@s.onstyle = proc do |sci, startp, endp|
|
|
24
|
-
puts startp, endp
|
|
25
24
|
sci.set_styling endp - startp, 1
|
|
26
25
|
end
|
|
26
|
+
@s.oncharadded = proc do |sci, c|
|
|
27
|
+
puts c
|
|
28
|
+
end
|
|
27
29
|
end
|
data/lib/cici/Scintilla.dll
CHANGED
|
Binary file
|
data/lib/cici/mingw32/ext.so
CHANGED
|
Binary file
|
data/lib/cici/mswin32_90/ext.so
CHANGED
|
Binary file
|
data/lib/cici/scintilla.rb
CHANGED
|
@@ -6,7 +6,6 @@ module Cici
|
|
|
6
6
|
style_set_default_font f
|
|
7
7
|
@font = f
|
|
8
8
|
end
|
|
9
|
-
|
|
10
9
|
attr_reader :font
|
|
11
10
|
|
|
12
11
|
# ------------------------------------------------------------------------------
|
|
@@ -17,7 +16,7 @@ module Cici
|
|
|
17
16
|
# scn = Cici::Scintilla.scn lparam
|
|
18
17
|
# puts scn.ch.chr 'utf-8'
|
|
19
18
|
# end
|
|
20
|
-
attr_accessor :
|
|
19
|
+
attr_accessor :onstyle
|
|
21
20
|
|
|
22
21
|
# called when an indentation is needed
|
|
23
22
|
# lineno: current line number
|