Hi folks
First, thanks to the developers and community for Geany - amazing editor!
I am in need of some help with customizing Geany. I have a set of words
that I want available when I am typing text files. So I read the
documentation and created a
#############
Modified the [filetype_extensions.conf ] as below:
[Extensions]
...
txt=*.txt;
[Groups]
...
Misc=JSON;txt;
########### - copied the /usr/share/geany/filetypes.css to the file below
and modified.
~/.config/geany$ more filedefs/filetypes.txt.conf
# For complete documentation of this file, please see Geany's main
documentation
[styling]
# Edit these in the colorscheme .conf file instead
default=default
.....
[keywords]
[settings]
# default extension used when saving files
extension=txt
# MIME type
mime_type=text/plain
[indentation]
###############
~/.config/geany$ more tags/txt.txt.tags
# format=pipe
alpha|||
omega|||
gamma|||
beta|||
When I start geany from command line as geany -v this is what i see:
Geany-INFO: Geany 1.27, en_US.UTF-8
Geany-INFO: GTK 2.24.30, GLib 2.48.1
Geany-INFO: System data dir: /usr/share/geany
Geany-INFO: User config dir: /home/myuser/.config/geany
Geany-INFO: Added filetype txt (68).
Geany-INFO: Loaded: /usr/lib/x86_64-linux-gnu/geany/saveactions.so (Save
Actions)
Geany-INFO: Loaded /home/myuser/.config/geany/tags/txt.txt.tags (txt), 342
symbol(s).
Geany-INFO: /home/myuser/Documents/mydocs/notes1.txt : txt (UTF-8)
Geany-INFO: /home/myuser/Documents/mydocs/notes2.txt : txt (UTF-8)
As can be seen filetype txt is accepted, txt.txt.tags is loaded. However it
seems to be loaded for file type (txt) where as my text files come up as
txt (UTF-8). Needless to say my tags from autocompletion don't show up.
However when I tried to set the file type to php manually and saved the tag
file as php.php.tags it worked. The same with setting manual type of "txt"
and loading txt.txt.tags does not work!
Any help/guidance is greatly appreciated.
Thanks
You probably know that you can now run a bash command line from Windows
10, and even more interestingly you can download all the ubuntu tools
(14.04) such as g++.
You can also run these commands from a regular windows cmd.exe if you do
the following:
bash -c "g++ --version" for example, gives the version number.
However, if I do the same as a build option (say, the compile option) I
get "Process failed(The system cannot find the file specified)". Even if
I use the absolute path, the Compiler line says
C:\Windows\System32\bash.exe -c "g++ --version" (in directory:
C:\Users\bill)
with the same error message. PATH does have bash in it, it all works
fine in cmd, just not here as an option.
Any ideas?
For those that want to ask why the question, I'm trying to help students
in a large C++ class. Some use windows.
--
>>>bill<<<
Hello,
more than two years after my initial message "RFC: Proxy plugins" I've
finally
reached the point that I envisioned back then. As a result, I can now
release
Peasy, which is my first personal proxy plugin, which I'm taking seriously.
Please give me feedback or even contribute to this project.
Peasy[1] is a proxy plugin which uses libpeas[2] to enable running
plugins in
other languages, most notably python [4]. Peasy also makes heavy use of
gobject-introspection to automatically create bindings to Geany's (and
Peasy's
own) APIs.
Short recap, what are proxy plugins: proxy plugins are ones which act as a
proxy to "second tier" plugins. The proxy use a specific Geany API to
register
themselves as a proxy and they provide methods to bridge Geany's core
and the
other plugins. The other plugins then become first class plugins.
Of course the point is, that those other plugins are not written in
C/C++ but
some other language. And the proxy plugin contains an interpreter or
some other
runtime to execute those foreign language plugins.
Back to Peasy, it provides methods to run Python plugins within Geany.
It also
ships a VAPI files for writing plugins in Vala.
I release version 0.2. I'm sure there hide plenty of bugs but it seems
relatively stable to me. The build process has some rough edge, though.
I support Peasy on my github, feel free to file bugs or send patches/PRs.
Q: What's the difference to GeanyPy
A: Peasy and GeanyPy have a lot in common, most prominently that they enable
Python plugins. But key differences are:
1) Peasy supports python3 only, GeanyPy only python2.
3) Peasy works gtk and gtk3, GeanyPy only gtk2.
3) Peasy automatically generates bindings for Python using
object-introspection
whereas GeanyPy contains hard-coded
4) Peasy reads plugin metadata from a different file no code runs
before the
plugin is truly activated.
5) Peasy isn't part for geany-plugins yet.
Peasy ships some plugins, some of which are not just for testing/playground:
- modeline-py: Parses vim modeline and applies them to Geany on a
per-file basis.
- console-python.py: This plugins opens a console window in which you can
explore the Geany APIs and run arbitrary python code. Heavily based on
console.py for GeanyPy.
- quickswitch.py: Adds a dialog that allows to quckly switch tabs. Also
supports
going to tags / symbols directly.
[1] https://github.com/kugel-/peasy
[2] https://wiki.gnome.org/Projects/Libpeas
[3] lua functionality is completely untested so not really supported at
this point
Best reards.
I want to compile a source code of the Allegro game library.After some
googling i found this compile command (
|g++hello.cpp -o hello -I/usr/include/allegro5 -L/usr/lib -lallegro|
)which runs the program. How can i set this as compile command in geany,
and is there a way not having to switch between this and a normal
compile command automatically when working on an Allegro and some
other/Non-Allegro files?
Many thanks
How to create regular expression tp match all UPPER CASE text within paragraps tag, and replace these <p> tag with <p class="bold">
<p> </p>
<p> USU EA EUISMOD HONESTATIS DETERRUISSET.</p>
<p>Qualisque mnesarchum no nam, usu cu fastidii delicata. Eu mei nonumy libris, quas movet vivendo vim at. Prima epicuri conceptam pro ad, in suas nonumes similique duo. Qui mundi essent complectitur eu. Ei laudem veritus democritum vis, te ferri appareat eos. Ceteros pertinacia ea eum, quo integre theophrastus ex, eum et sint omnes detracto. </p>
<p>Usu ea euismod honestatis deterruisset. Ne quo malis meliore, duo viris liberavisse no, mea an vide mutat quodsi. Vis an vidit debitis, et noster aliquam pri, case iudicabit te sea. </p>
<p> </p>
<p> CU CONGUE IRIURE SCAEVOLA --
UT DOMING IRACUNDIA. </p>
<p> DICO TEMPOR HABEMUS - PART II, 123 </p>
<p>Homero everti ei nam. An liber euripidis vis, pericula persecuti deseruisse ad mea. Dicant offendit sea et, per esse timeam deserunt ut. In pri enim sadipscing, ei movet soleat suavitate vim. Mea et omnesque phaedrum, paulo luptatum concludaturque vim ea. -- LIBER. </p>
I want appply class to
<p class="bold"> USU EA EUISMOD HONESTATIS DETERRUISSET.</p>
<p class="bold"> CU CONGUE IRIURE SCAEVOLA --
UT DOMING IRACUNDIA. </p>
<p class="bold"> DICO TEMPOR HABEMUS -PART II, 123 </p>
I need Unicode solution for Cyrillic text. This not works:
Find what: <p(>\W*?[[:upper:]][[:upper:]\W]*?</p>)
Replace with: <p class="bold"\1
Has anyone experiences with setting up Geany as IDE for commonlisp? I
have sbcl installed, this is the output of|whereis sbcl|:
|sbcl:/usr/bin/sbcl /usr/lib/sbcl /etc/sbcl.rc /usr/share/man/man1/sbcl.1.gz|
However when i run a program with F5 in Geany i get this in the terminal
seeming it searches for clisp:
|/tmp/geany_run_script_9ZR2LY.sh:7:/tmp/geany_run_script_9ZR2LY.sh:clisp:not
found|
More over the indentation is also deactivated when in the lisp mode. Can
anyone help?
I am using Ubuntu-studio.