638 Commits

Author SHA1 Message Date
Enrico Tröger
3820a4fb6e Update functions and variables for the NSIS filetype
And add a script to make this task easier in the future.
2019-07-06 15:23:23 +02:00
Simon Krauter
3afdba5716 Add Nim filetype (#2085)
* Add Nim filetype

Add support for the Nim programming language using the Python lexer.
Nim website: https://nim-lang.org/

* Correct file name

* Add filetypes.Nim.conf to Makefile.am

As requested by b4n

* Remove unneeded lexer_properties and indentation width

As requested by b4n

* Fix run_cmd

* Improved keywords
2019-06-08 18:44:18 +01:00
ankitpati
95c0c06cba Add support for Apple Swift language 2019-05-27 13:48:38 +01:00
scootergrisen
3b1c6f3635 email to Email (#2005) 2018-12-05 10:01:12 +10:00
Colomban Wendling
dbf1d009d4 Add mnemonics keys for some preferences 2018-12-02 17:49:14 +01:00
Colomban Wendling
51385f2a73 Add relations between label widgets and labelled widgets 2018-12-02 17:48:37 +01:00
Enrico Tröger
10252bea6e
Merge pull request #1932 from eht16/issue1912_change_batch_comment_to_rem
Use REM as single comment marker for Batch files
2018-11-25 15:04:57 +01:00
Dominic Hopf
a00471f50f Update std.php.tags to be current with PHP 7.2 2018-10-07 12:02:58 +02:00
Colomban Wendling
0b75601ac8 Merge pull request #1914 from b4n/scintilla/update-3-10-0
Update Scintilla to version 3.10.0

Fixes #1421.
2018-09-19 22:22:24 +02:00
Enrico Tröger
9ecabc20f0 Use REM as single comment marker for Batch files
REM seems to be the standard comment marker while "::" is rather
deprecated.

Closes #1912.
2018-08-26 12:48:17 +02:00
Colomban Wendling
ea47c6c713 Update Diff styles for new Scintilla version
The new styles are for "diff of a diff", e.g. lines starting with `++`,
`+-`, `-+` and `--`.  Those are currently mapped conservatively keeping
the previous display behavior, until we have good style matches for
them.
2018-08-01 14:53:30 +02:00
Miro Hrončok
3182ed5e03
Update Python identifiers with Python 3.7
Fixes https://github.com/geany/geany/issues/1351
2018-07-06 22:16:44 +02:00
FMuro
af15898823 Fix boldface and italics (#1837)
Before, **boldface** or *italics* (also _italics_) would not generally show as that, definitely not with the default color scheme. After this change, they appear with the same color as normal text but with that typography, in all color schemes.
2018-05-05 20:36:08 +02:00
Paul Menzel
b10b2a7167 Use HTTPS URL for domain www.geany.org
Replace all occurrences with the command below.

    git grep -l 'http://www.geany.org' | xargs sed -i 's,http://www.geany.org,https://www.geany.org,g'
2018-04-23 17:11:37 +02:00
Matthew Brush
6b973bc70b Theme improvements (#1382)
* Improve GTK+3 theme loading

- Merge geany-3.0.css into geany.css
- Load geany-3.20.css to override if runtime version dictates
- Load geany.css from app->configdir if it exists.

* Add initial documentation for GTK+ CSS theming

* Add geany.css file to the `Tools->Configuration Files` menu

Also mark such config files as changed if they don't already exist to
force the user to save or discard any newly created config files.

* Allow customizing message window using GTK+ themes

* Improve GTK+3 CSS docs a bit

State which classes are meant to be overridden by themes.

* Go back to conditionally loading geany-3.0.css

It can't be merged into geany.css since GTK+ CSS parser doesn't ignore
invalid properties when prefixed with vendor extension (ie. -Gtk).

* Don't mark unedited config files as changed

They probably should be marked as changed since they don't exist on
disk yet, but for the time being leave it how it was.

* Fix misuse of CSS ID vs class in manual

* Minor colour value tweaks

Based on feedback from @b4n
2018-01-13 06:46:50 +10:00
Matthew Brush
1f71ccd40a
Enable popup menu on sidebar and message window notebooks (#1726) 2017-12-21 17:40:57 -08:00
Colomban Wendling
a46d8752dc Merge pull request #1650 from b4n/project-indent-settings-note
Add a note for applying the indent settings in the project preferences
2017-12-20 16:36:06 -08:00
Colomban Wendling
bd22fef060 CSS: Update Grid properties
See:
* https://www.w3.org/TR/css3-grid/#property-index
* https://drafts.csswg.org/css-grid/#property-index
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout#CSS_properties

Closes #1705.
2017-12-03 10:53:30 -08:00
elextr
dd58ab6f49 Make Python comment hash space (#1682) 2017-11-09 12:54:36 +01:00
Colomban Wendling
7d53e1c790 Add a note for applying the indent settings in the project preferences
Add the same note about applying indentation settings on currently open
documents in the project preferences as there already is in the main
preferences dialog.
2017-10-16 18:49:38 -07:00
Matthew Brush
76c69a9bac Add GNU assembler extensions
Closes #904
2017-08-31 18:31:29 -07:00
delt
38147b2590 Added an option to save/reload either window position or
size, but optionally not both.
2017-08-04 01:05:15 -07:00
Thomas Martitz
b2668dae67 Better snippets (#1470)
* snippets: Allow keybinding overloading of snippet-next-cursor.

This allows to use the same key as for inserting snippets, or plugins to
map something to the same keybinding (e.g. if they implement a similar facility).

* snippets: Remove cursor position at the end of constructs.

This is not consistently done for all languages, and hard to get right
e.g. for python. It's probably not terribly useful either.

* snippets: Use Scintilla indicators for cursor posititons
* api: Increment API version.
* snippets: restore behavior of cursor-less snippets
* snippts: use ascii character for the placeholder.

Do not require documents to be UTF-8 for using snippets.

* snippets: fix start/end detection, when searching for the next cursor

Tested @vfaronov
2017-07-21 16:42:58 +10:00
klaxian
e0dd1ee109 Added missing PHP keywords, especially for PHP 7.x. (#1547) 2017-07-21 16:02:56 +10:00
Colomban Wendling
8b25d09978 Cython: Inherit lexer properties from the Python filetype 2017-07-19 22:08:24 -07:00
Colomban Wendling
c03af5b434 Python: Remove obsolete lexer property 2017-07-19 22:08:19 -07:00
Colomban Wendling
b2b81359c3 Python: Don't highlight sub-identifiers as keywords
For example, highlight `file` as a builtin when appearing by itself,
but not in a construct like `obj.file`.

Fixes #1542.
2017-07-15 21:03:53 -07:00
Vasiliy Faronov
7027377998 Update HTML keywords (#1530)
* Add newly standardized HTML elements to filetypes.html

To enable highlighting them as keywords in HTML documents, add
the following elements defined in W3C HTML 5.1
(https://www.w3.org/TR/html51/fullindex.html#index-elements):

- menuitem
- picture
- rb
- rtc
- template

as well as the following elements defined in WHATWG HTML Living Standard
(https://html.spec.whatwg.org/multipage/indices.html#elements-3):

- math
- slot
- svg

* Add newly standardized HTML attributes to filetypes.html

To enable highlighting them as keywords in HTML documents, add
30 attributes defined in W3C HTML 5.1
(https://www.w3.org/TR/html51/fullindex.html#attributes-table)
and a further 15 attributes defined in the WHATWG HTML Living Standard
(https://html.spec.whatwg.org/multipage/indices.html#attributes-3).

* Sort the list of HTML keywords
2017-07-12 09:44:53 +10:00
Yan Pashkovsky
4406ccf970 Cmake and Csharp Keywords (#1315)
* cmake cs keywords

* cs and cmake keywords update

c sharp keywords https://msdn.microsoft.com/en-us/library/x53a06bb.aspx

* reviewed cmake keywords

reviewed cmake keywords according to https://cmake.org/cmake/help/v3.0/manual/cmake-commands.7.html

* public private interface

* cmake alphabetical kws

* comments
2017-06-27 17:15:30 +10:00
Giorgioggì
fbe6106216 Fix comment/uncomment keyboard shortcut for Arduino filetype (#1510) 2017-06-23 18:52:43 +02:00
Colomban Wendling
8425371477 Haxe: Update keywords (#1216)
Update keywords with https://haxe.org/manual/expression.html#keywords.

`trace` is kept although it's not a keyword, because it was already
there and http://try.haxe.org/ highlights it identically to some other
keywords.
2017-05-02 13:46:28 +10:00
Jacob H. Pratt
9f4407ca29 Add require_relative in ruby syntax highlighting (#1472) 2017-04-29 11:20:38 +10:00
A. Tombs
33762f5225 Add parfor to Matlab keyword list (#1021)
Add parfor to Matlab keyword list

Add `parfor` to the list of keywords to be highlighted in Matlab script sources. `parfor` is a Matlab keyword that can be used in place of `for` to achieve parallel processing.
2017-03-22 10:06:47 +10:00
Colomban Wendling
93f273428a Update for new Scintilla styles 2017-02-21 14:16:56 +01:00
Colomban Wendling
2c1a71ad2b Use :select/:deselect signals for consistency
Instead of having a handler on 2 separate objects, use :select and
:deselect on the same one.  Those signals are appropriate, as the
documentation mentions that submenus are popped up on :select.
2017-02-05 15:34:24 +01:00
Forkest
67d6562f20 Fix cut and copy actions in non-Latin keyboard layouts
Mark the associated menu items sensitive when the menu is hidden, so
that GTK's accelerator handling can trigger them.  This works around
incorrect handling in Geany's code of keybindings coming from multiple
layouts for cut/copy/delete actions.

Partial workaround for #998, #1286 and #1368.
2017-02-05 12:52:51 +01:00
Colomban Wendling
00a3aef94d Merge pull request #1361 from Akronix/keywords-js.filetypes
Updated filetypes.javascript keywords
2017-01-23 14:10:45 +01:00
Abel 'Akronix' Serrano Juste
c6984699d3 Removed 'alert' from secondary keywords since it depends on a DOM environment 2017-01-14 21:26:36 +01:00
Abel 'Akronix' Serrano Juste
c328051382 Some adjustmenys in javascript keywords: Deleted 'each' from secondary keywords 2017-01-11 23:18:38 +01:00
Abel 'Akronix' Serrano Juste
6fad4c017c Updated js keywords with ES6 2017-01-11 23:05:05 +01:00
Colomban Wendling
9fdb014b07 javascript: Partial highlighting of ES6 template strings
This doesn't support nested templates or escaped `es, but at least
handles the most obvious cases for now.

Part of #934.
2016-12-18 17:38:37 +01:00
SukkoPera
21b37f553f Add Arduino custom filetype
Closes #1339
2016-12-16 02:55:35 -08:00
Frank Lanitz
8330c68a29 Fix a small grammatical issue 2016-11-18 02:23:50 +01:00
Colomban Wendling
6cdb1842be VTE: Remove support for background image
It's a more than questionable feature that was dropped in VTE 2.91, so
remove it altogether instead of conditionally supporting it.
2016-10-29 16:12:32 +02:00
Colomban Wendling
ae114e263c Merge pull request #1185 from b4n/error-indic-color
Allow to configure the error indicator color
2016-10-29 15:15:43 +02:00
Colomban Wendling
bee3806d47 Allow to configure the error indicator color
Related to #1116.
2016-10-24 12:27:59 +02:00
Simon Marchi
13ef73d109 Recognize .exp (Expect) files as Tcl
Expect [1] scripts filenames generally end in .exp, although the code
itself is actually in Tcl.  I find my self manually selecting Tcl quite
often, so I think it would be nice if Geany would recognize it direcly
as Tcl.

[1] http://expect.sourceforge.net/

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-09-09 20:52:01 -07:00
Colomban Wendling
c9d0bd7214 Inherit C lexer_properties in all filetypes inheriting C styles
`lexer.cpp.track.preprocessor` lexer properties affects which styles
are used, and we don't set those, so no filetype inheriting C styles
should set it to 1.

Similarly, some properties like `styling.within.preprocessor` are
mostly general settings rather than selecting syntax details, so they
should probably match in all filetypes for consistency.

So, inherit the C lexer_properties everywhere C styles are used, and
only override specific properties in the inheriting filetype.
2016-09-06 12:18:48 +02:00
Colomban Wendling
bbdf56fc2e Haxe: Do not track preprocessor for styling
We don't set the styles for inactive preprocessor sections, so we
should make sure they aren't used.  Also, Haxe has different
preprocessor directives than C does, which confuses LexCPP tracking
anyway.

Fixes #936.
2016-09-06 11:35:11 +02:00
Colomban Wendling
09796ef727 Remove SciTE properties from filetype definitions
Those are SciTE-specific things that Scintilla itself never used,
and that were simply erroneously imported into Geany.
2016-09-06 11:08:52 +02:00