-
Notifications
You must be signed in to change notification settings - Fork 71
Install gtksourceview2 on Windows and Linux for Source View plugin
Rohan Verma edited this page Jul 26, 2016
·
5 revisions
This chapter describes the installation of the gtksourceview2 on Windows which is required to use the "Source View" (Codeblokken) plugin.
Note: gtksourceview2 is currently not available in the Windows Release 0.62 http://www.glump.net/software/zim-windows. Release 0.63 for Windows includes GtkSourceView.
A workaround is to install:
- Python
- A PyGTK package which includes the gtksourceview2
- Zim full source.
Installation steps:
- Download and install Python 2:
- Download and install PyGTK all in one with PyGtkSourceView2:
- http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.2.win32-py2.7.msi
- Important: Check PyGtkSourceView2 2.10.1 in the installation window.
- Extract the Zim full source into C:\Program Files (x86)\zim-0.62:
- Create a new shortcut, or start Zim from the command prompt:
- C:\Python27\pythonw.exe "C:\Program Files (x86)\zim-0.62\zim.py"
- Goto chapter "Source View plugin usage" below.
This chapter describes the gtksourceview2 installation on Linux.
- Download and install Zim:
- Run in in command prompt:
- Debian:
$ sudo apt-get install python-gtksourceview2
- Fedora:
$ sudo dnf install pygtksourceview
- Debian:
- Start Zim:
- $ zim
- Enable the Source View plugin:
- Edit > Preferences > Plugins > Check: Source View > OK
- Note: The installation was not successful when Source View is grayed out and gtksourciew2 red colored.
- Insert a new code block:
- Insert > Code Block
- Set a language
- Enter your source code