I wonder if it's possible to insert in multiple places within a
snippet the same string? For example, I have a snippet which inserts
some HTML code that refers to an image and I use the description of
the image in two places within the same snippet. As I understand the
manual, you insert "%cursor%" anywhere that you want the cursor to
jump to so that the user can insert text. If I enter a title for an
image in my example snippet I would prefer to have that also inserted
elsewhere in the same snippet.
--
Russell Dickenson
Hello Lex,
Thanks for the info. I'm planning to use phpCodeSniffer as a start. It's a command line tool that outputs errors and warnings about coding style after reading the PHP code. It's syntax is something like this phpcs file.php.
I wanted to create a more easy to use interface for this, maybe a plugin or something, that outputs such checks, once enabled, in the Geany warnings or something. I use the built-in terminal to check my code with phpcodesniffer, phpunit and other tools, but it's quite a pain to change everything once in a while.
ps.: Can i write a plugin to create more than one built-in terminal screens, with pre-scripted commands? For example, automatically create a built-in terminal window that runs the following command: watch -n 1 php FILE_BEING_EDITED.php (great debugging)
----- Original Message -----
From: Lex Trotman
Sent: 08/02/11 09:26 PM
To: Geany general discussion list
Subject: Re: [Geany] Warnings and Errors in Geany
On 3 August 2011 06:21, Vincent P. Ellis <vincent(a)linuxmail.org> wrote: > Is there a plugin, or a built-in feature i missed, where i can have Warnings > and Errors checked for my code in Geany? I'm trying to attach > PHP_CodeSniffer to Geany and output the warnings and errors directly in the > window. > Hi Vincent, Only commands run from the build menu compile or make sections are checked for errors by regex or fallback to HHH (hairy hardcoded heuristics). Detected error lines are marked and the message in the message window is red and is a link to the source line. I'm not a PHP programmer so I don't know what the tool you mention does but if its anything like a compiler or lint program then add it to the filetype section (see the manual). Cheers Lex > Vincent Ellis > C/C++ Technician > vincent(a)linuxmail.org > El Paso, TX > _______________________________________________ > Geany mailing list > Geany(a)uvena.de > https://lists.uvena.de/cgi-bin/mailman/listinfo/geany > > _______________________________________________ Geany mailing list Geany(a)uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Vincent Ellis
C/C++ Technician
vincent(a)linuxmail.org
El Paso, TX
A gentleman called simon posted that editing the filetypes.python file
in the fildefs folder would get pylint working in geany on linux.
How would the format of the PYTHONPATH statement need to be in
windows XP & 7 so that pylint would work. I tried a couple of variants
but could not get anything to work.
This was the code post.
[build-menu]
FT_00_LB=pep8
FT_00_CM=pep8 --repeat --count "%f"
FT_00_WD=
FT_01_LB=PyLint (basic)
FT_01_CM=PYTHONPATH=${PYTHONPATH}:"%d" pylint
--output-format=parseable --reports=n --errors-only "%f"
FT_01_WD=
FT_02_LB=PyLint (full)
FT_02_CM=PYTHONPATH=${PYTHONPATH}:"%d" pylint --output-format=parseable "%f"
FT_02_WD=
error_regex=^([^:]+?):([0-9]+):.+
Sayth
Hi,
It seems there's no way to start geany to open a file in a "read-only"
mode.
Would it be a lot of work to add such a command line option? Don't
bother if it is. :-)
Regards,
ST
--
Geany Newsletter #3
-------------------
Contents
========
About Geany
Geany Development
Bumping dependencies for GTK2 and GLib
Plugins
Bumping dependencies for Geany-Plugins project at Geany 0.21 and GTK2 2.12 Geany Universe
New Geany Wiki
Let us introduce you...
Plugin Focus
Spell Check
Feature Focus
Line Breaking vs Line Wrapping
Line Breaking
Line Wrapping
People behind Geany -- Interview
Columban Wendling
About this newsletter
About Geany
===========
Geany is a small and lightweight Integrated Development Environment.
It was developed to provide a small and fast IDE, which has only a
few dependencies from other packages. Another goal was to be as
independent as possible from a special Desktop Environment like KDE
or GNOME - Geany only requires the GTK2 runtime libraries.
More information about Geany can be found at http://www.geany.org/
Geany Development
=================
Bumping dependencies for GTK2 and GLib
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Starting with SVN r5839 Geany depends on GTK2 >= 2.12 and GLib >= 2.16
to make use of some new features introduced with these releases and to
avoid maintaining duplicate code and complicated #ifdef structures.
Plugins
=======
Bumping dependencies for Geany-Plugins project at Geany 0.21 and GTK2 2.12
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Starting with SVN 2095 the general section of the combined Geany-Plugins
project depends on Geany 0.21 and similarly Geany depends on GTK2 >=
2.12.
Geany Universe
==============
New Geany Wiki
^^^^^^^^^^^^^^
Several weeks ago the Geany wiki was created, in which interesting
facts around Geany can be collected. Some pages are still empty and
some topics might be missing, but a good start has been made. Check
out the pages at http://wiki.geany.org/. Please contribute whatever you
can, including your favorite snippets, color schemes etc.
Let us introduce you...
=======================
This section is intended to introduce particular plugins or features
on a regular basis.
Plugin Focus
^^^^^^^^^^^^
Spell Check
***********
Although Geany is primarily an editor aimed at programming tasks,
it's often used to write plain text. All of us would like to think
that we can spell correctly but, especially for foreign words, a
little help is always welcome: Geany's Spell Check plugin can help,
either checking on demand or as you type.
To check the spelling of the current document on demand, select
Tools > Spell Check > [language] from the main menu. If you often
use this feature consider creating a keyboard shortcut to make
activating it easier.
In case you would prefer to have your spelling checked immediately,
enable the "Check spelling while typing" option in the plugin's
preferences: Edit > Plugin Preferences > Spell Check.
The default language used by Spell Check is configured in Spell
Check's preferences.
The Spell Check plugin can offer suggestions for misspelled words in
the Message window, in the context menu or both. Choose whichever
option suits you best by checking the options in the plugin's
preferences.
Any suspect words are marked with a red squiggly underline. To
correct these, right-click on them and highlight the "Spelling
Suggestions" item in the context menu. From there you can either
select from a list of suggested words, add the word to your personal
dictionary or ignore it. You can install extra dictionaries in
Myspell format which is especially useful if you're often using
words which are not in a standard dictionary.
Feature Focus
^^^^^^^^^^^^^
Line Breaking vs Line Wrapping
******************************
In the Document menu are check boxes Line Breaking and Line
Wrapping. Although their names are similar, they behave differently.
Line Breaking
#############
When the Line Breaking option is enabled and you type a word past
the "Line breaking column" (set in Preferences), Geany will input a
carriage return at the end of the line and put the cursor on the
line below. This option is best used with plain text files when you
you want to keep every line to a maximum length. It's not
recommended for code since you might not notice the line break occur
and later have to debug the result.
Line Breaking is activated only when you move the cursor past the
"Line breaking column" while editing. This means that an already
long line will simply get longer if you add text before the "Line
breaking column". When this happens you can use the "Reflow
Lines/Block" function (in the Edit > Format menu) to adjust all
lines so that they're within the line breaking column. Line Breaking
must be enabled per document via the menu option Document > Line
Breaking.
Line Wrapping
#############
The Line Wrapping option is similar to Line Breaking but the lines
are only wrapped visually; no carriage returns or line feeds are
added. This option is best used when you want to be able to see the
entire file within the current window. So that it's obvious which
lines have been wrapped, a visual indicator is added to the end of
each wrapped line. Line Wrapping is very CPU-intensive and can slow
down Geany if it's enabled while editing a very large file.
If you prefer to have Line Wrapping enabled by default, there is an
option for this in the Preferences dialog box Editor > Features.
With this option enabled, you can disable Line Wrapping via the menu
option Document > Line Wrapping.
People behind Geany -- Interview
=================================
This is the first in a series of interviews with Geany's
contributors: core developers, plugin developers, translators, wiki
maintainers and any other job we can think of. The purpose of the
interviews is to get to know each of these people a little better:
their hopes, dreams, plans and favourite Geany plugin.
Columban Wendling
^^^^^^^^^^^^^^^^^
Thank you to Colomban Wendling for agreeing to an interview and
congratulations for being the very first. Now on to the questions...
*What motivates you to develop Geany?*
I use Geany on a daily basis, so I'm concerned about its
development and improvement. I'm also happy to give back a
little bit of all the good Geany given me through the years I
used it :) And don't be silly: the FAME! :D
*Why do you develop for free instead of devoting this time to paid
projects?*
Philosophy, naivety... Actually I don't "develop for free" if it
only means "without being paid", I develop for free "as in
freedom" software because I like the ideology behind it. Not
being paid is only a concern in the way I need to do some other
stuff beside to get money in.
What I probably prefer in free software is the fact one can
learn from reading the code. It was a great source of help and
knowledge when I started learning programming, and it still is.
A related thing is the ability to modify the software to better
fit my needs, or simply to fix a bug that concerns me. It serves
me from time to time (once I discover an annoying bug ^^) and
allows me to send back the fix to upstream developers, hopefully
helping other users.
I won't give all the philosophy behind free software, I think
you've got my point :)
*Do you do development on other projects that are of interest to you?*
Not really beside my personal projects. As said above, I send
patches from time to time to developers of software I use, but
I'm not really involved in any other project than Geany.
*Do you have a favourite Geany feature and if so, what is it?*
Most probably the tag completion; but also that almost
everything is configurable to fit ones needs.
*Do you have a favourite Geany plugin and if so, what is it?*
If I'd not fear to sound selfish, I'd say GeanyGenDoc :D
Otherwise, SpellCheck without a doubt.
*What do you do when you're not developing Geany?*
I continue studying programming, or work on personal projects
though it's almost the same thing.
*What do you use Geany for?*
Every one of my programming tasks, and some other text editing.
*Do you use any editors other than Geany? (Of course the answer here
should be "Absolutely not!" but I'm asking it anyway. :)*
I use Nano for commit messages and administration tasks I need
to do as root, but for all serious text editing I use Geany.
*In which environments do you use Geany?*
GNU/Linux (with GNOME), and occasionally Windows (but only when
I'm forced to use Windows).
About this newsletter
=====================
This newsletter has been created in cooperation by people from
Geany's international community. Contributors to this newsletter and
the infrastructure behind it, ordered by alphabet:
Colomban Wendling,
Enrico Tröger,
Frank Lanitz,
Russell Dickenson
Hello World,
Does anyone have a file for geany to enable syntax highlighting for MS
IDL files?
TIA and best regards
Andreas
--
("`-''-/").___..--''"`-._
`o_ o ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' .'
(il).-'' (li).' ((!.-'
Andreas Tscharner andy(a)vis.ethz.ch ICQ-No. 14356454
Hi,
Right now there are only two values in GeanyIndicators. There is a
cool red underline for errors, but it would be even cooler to have a
yellow wavy underline for warnings. Would that be possible for you to
expose such value there?
--
Filip Gruszczyński
Hi,
As I couldn't find out if someone already build such a file here is
(enclosed) my javascript tags file to enable javascript auto-completion ...
Alternative link : http://dl.yent.eu/em.js.tags
I extracted stuff from the W3C JS/DOM reference so it does not include
jquery/dojo and such related tags (personally I don't need them) but
since it is really easy to add other tags ...
Btw once more I really love geany's flexibility when it comes to
customization ...
Etienne
Hi to all the denizens of the #geany IRC.
I have been reviewing the IRC logs and feel that I have to make the
following note about the way some people are using IRC.
Remember that IRC only allows those who happen to be there at the time
to contribute to a discussion or answer a question. With the ML
people can contribute at their convenience (and timezone) providing a
wider potential input.
This means that no design decisions should be made on IRC and design
discussions should be copied to the ML to ensure as wide as possible
input.
I know some people do that, and this is just a gentle reminder to the others.
Same goes for user questions that are not answered at the time, advise
the user to re-post on the ML, don't just leave them without an
answer.
Cheers
Lex