Commit Graph

21 Commits

Author SHA1 Message Date
Pavel Roskin
f7c5a5fea2 * syntax.c (syntax_text): Add support for S-Lang. 2001-07-29 14:52:05 +00:00
Pavel Roskin
72d0112151 * syntax.c (open_include_file) [GTK]: Use mc_home instead of
LIBDIR.
2001-07-20 14:45:30 +00:00
Pavel Roskin
9d94a3fbc8 * edit.h [MIDNIGHT]: Declare wedit.
* editmenu.c: Remove wedit declaration.
* editoptions.c (edit_options_dialog): Load syntax rules if user
turned syntax highlighting on.
* syntax.c (edit_load_syntax): Don't load rules if syntax
highlighting is disabled.
2001-07-17 21:38:49 +00:00
Andrew V. Samoilov
733c2dd05e * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
of syntax file(s) with LIBDIR, use mc_home instead.
From Ludovic Drolez <ludovic.drolez@freealter.com>.

(syntax_text): Use perl.syntax to highlight perl modules (.pm).
2001-05-30 12:35:16 +00:00
Pavel Roskin
59d332e0d9 * gtkedit/syntax.c (syntax_text): Add support for Octave files.
* syntax/octave.syntax: New file. From Walery Studennikov.
* syntax/Makefile.am: Add octave.syntax.
2001-05-26 22:40:09 +00:00
Andrew V. Samoilov
5eb58afa28 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
* syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
	makefile and GNUmakefile
	(upgrade_syntax_file): infinitive loop fixed when rule file
	is outdated but it cannot be unlinked/overwritten
2000-09-07 17:45:28 +00:00
Andrew V. Samoilov
090957605c 2000-07-20 Andrew V. Samoilov <sav@bcs.zp.ua>
* gtkedit/editcmd.c (edit_save_file): check fclose()s return value
	to prevent loss of data
	(edit_block_process_cmd): don't translate empty string

	* gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
	edit_init_file): added declarations

	* edit.c (edit_filters): constified
	(edit_get_write_filter): filename constified
	(user_menu): don't translate empty string

	* syntax.c (syntax_text): constified
	(upgrade_syntax_file): syntax_line constified, f closed after use
2000-07-19 22:23:58 +00:00
Miguel de Icaza
b028900fdd 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
       Add macro %e it is error file name
       Add macro %i it is cursor column indent of spaces, only for edit
       Add macro %y, it is syntax of current file in editor, only for edit
       Add condition y , it is syntax pattern of current file in edit
       Add macro %x it is extension of current file
       Add macro %m it is current menu filename

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
	Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
	edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
	(the message of David H. Martin <dmartina@usa.net>)

2000-05-05  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* src/user.c:	Add condition (x filename) into mc.menu .
			for "Open next a free console" and like.

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	src/user.c: fix segfault in chunk_alloc of glibc, when into condition
	of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/edit.c:
       Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
	* gtkedit/editmenu.c:        home: ~/.cedit.menu, local: .cedit.menu
	Marked block is access now from an user edit menu
	Access ~/.cedit/cooledit.block for insert to cursor place from
	user edit menu.
	Created system cedit.menu

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

    	* gtkedit/editdraw.c:
	Improved a status string of cool editor for best understand,
	and to add char,hex view.

2000-05-04 Richard Hestilow <hestgray@ionet.net>

	* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 01:18:27 +00:00
Timur Bakeyev
cfc69f6769 2000-04-06 Timur bakeyev <mc@bat.ru>
* syntax.c: Wery dirty fix to allow compilation of mceditor on ncurses
	based systems. Hope, this will make FreeBSD midc maintainer to enable
	build-in editor by default. Still, syntax highlighting is disabled.
	Need to port...
2000-04-09 23:17:48 +00:00
Pavel Machek
e0d1cc5c2c Changes from A. Samoilov 2000-03-17 10:31:37 +00:00
Pavel Roskin
6521c7afbd * gtkedit/syntax.c: treat *.ads as Ada source
* syntax/ada95.syntax: escape "+" and "*"
        * syntax/diffc.syntax: removed (obsoleted by diff.syntax)
        * syntax/Makefile.in: remove diffc.syntax
2000-02-25 05:24:30 +00:00
Paul Sheer
e0e49f355c syncronise code with cooledit-3.13.0 this fixes some odds and ends.
in particular, leaking syntax.c that was chomping memory.
Also, should note the bzip2 and gzip filters and better support
for Windows CR importing - windows guys should take a look at
this if you are still out there. dunno if it works yet.
2000-02-18 11:16:06 +00:00
Norbert Warmuth
ccdd7f5bce 1999-08-08 David Martin <dmartina@usa.net>
* gtkedit/syntax.c (upgrade_syntax_file): Mark error strings for
translation.

* gtkedit/editmenu.c (edit_about_cmd): Mark text in "about" for
translation as it used to be.

* po/POTFILES.in: Removed symbolic links, and outdated
gmc-window.[ch] and olddnd.c. These don't repport any new strings,
increase compile time and make po files large. Basically adds
gaction.c, g,mount, smbfs.c to the pre-previous file.

* po/es.po: Added new strings with latest editor changes. Added
strings in gaction.c. Merged with a new mc.pot after the changes
in POTFILES.in.

* gnome/gaction.c (mainly gmc_unable_to_execute_dlg): Moved g_strconcat
to g_strdup_printf, to get compact strings and make coherent
translations. Translate atomic actions (open, edit, view) when
calling this function.

* src/menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
get the right size even when NLS is disabled.



1999-08-08  Norbert Warmuth  <nwarmuth@privat.circular.de>

* po/POTFILE.in: Removed gpopup.c as it is not compiled.
1999-08-08 12:43:32 +00:00
Paul Sheer
f7bc648b90 mcedit updates to reflect cooledit-3.11.6
a large number of minor changes have been made
	those really interested can check the cooledit
	changelogs.
	in particular, on the fly spell checking has been
	added. this is not yet enabled for use, but the code
	is there.
	syntax highlighting optimisations have been made
	and various syntax rules added for some new
	languages.
	comprehensive bookmarking support has been added, but
	this requires keybindings still.
1999-07-21 20:03:23 +00:00
Timur Bakeyev
1482bc0594 Mon Mar 22 03:00:15 1999 Timur Bakeyev <mc@bat.ru>
* edit/syntax.c: Remove extra "|"  in "file ..\*\\.(pp|PP|pas|PAS|)$ \
	Pascal Program" (Heh, second time :)

	* Makefile.common: Until things gets clear, keep syntax rules in
	$(prefix)/lib/mc//syntax, as this is how (LIBDIR "/syntax") expands.

	Also, $(libdir) changed to $(mclibdir), to avoid confusion with expanded
	@libdir@.
1999-03-22 00:01:53 +00:00
Paul Sheer
bb36519e9f bring editor up to date with cooledit-3.9.0 - see ChangeLog for details 1999-03-21 01:56:20 +00:00
Timur Bakeyev
0ae23343b8 Fixed typo in new syntax ruleset. 1999-01-12 10:40:14 +00:00
Paul Sheer
99c03a1cda gmc mcedit selection now works 1998-12-16 12:35:43 +00:00
Paul Sheer
c00a8845fd ditto previous 1998-12-10 22:08:11 +00:00
Paul Sheer
cf16bf846b syntax highlighting for perl plus syntax highlighting fixes. 1998-12-10 15:43:32 +00:00
Paul Sheer
df20f28f2e Initial commit 1998-09-14 20:18:54 +00:00