Commit graph

11454 commits

Author SHA1 Message Date
Benoît Minisini
99c0b50cde Redraw some 'gambas-thin' icons.
[GB.FORM.STOCK]
* NEW: Redraw some 'gambas-thin' icons.
2023-11-11 14:14:51 +01:00
Benoît Minisini
fe1e2914b1 Project tree: Adding new files is possible again.
[DEVELOPMENT ENVIRONMENT]
* BUG: Project tree: Adding new files is possible again.
2023-11-11 13:39:51 +01:00
Benoît Minisini
284da64b73 Option dialog: Opening the dialog twice when the "Interface" tab is selected does not crash anymore.
[DEVELOPMENT ENVIRONMENT]
* NEW: Code editor: Hide the "insert date" toolbar button by default.
* BUG: Option dialog: Opening the dialog twice when the "Interface" tab is selected does not crash anymore.
2023-11-11 13:12:45 +01:00
Benoît Minisini
d0b75bcd54 Some fixes about profile file management.
[DEVELOPMENT ENVIRONMENT]
* OPT: Do not load recent file settings twice at startup.
* BUG: Fix layout of some confirmation messages.
* BUG: The open profile dialog correctly remembers its directory.
* BUG: Fix popup menu of external files.
* NEW: Add "Remove all profile files" action to the 'Debug' menu.
2023-11-11 03:18:29 +01:00
Benoît Minisini
11d7836779 Settings: Reading string values is faster now.
[GB.SETTINGS]
* OPT: Settings: Reading string values is faster now.
2023-11-11 02:49:23 +01:00
Benoît Minisini
2b63368921 Project tree: Fix profile popup menu.
[DEVELOPMENT ENVIRONMENT]
* BUG: Project tree: Fix profile popup menu.
* NEW: File property dialog: Take profile files into account.
* NEW: Update French translation.
* BUG: Fix file header text in the message of confirmation dialogs.
2023-11-11 02:06:12 +01:00
Benoît Minisini
0ab20519da TextHighlighter: When a "from" or "between" right limit is at end of line, test it before trying to match anything else.
[GB.HIGHLIGHT]
* NEW: TextHighlighter: When a "from" or "between" right limit is at end of line, test it before trying to match anything else.
* NEW: Update 'highlight' definition file.
2023-11-10 20:50:51 +01:00
Benoît Minisini
816fbdc210 TextHighlighter: Fix 'highlight' definition file highlighting.
[GB.HIGHLIGHT]
* BUG: TextHighlighter: Understand "from here" and "between here" commands.
* BUG: TextHighlighter: Fix 'highlight' definition file highlighting.
* NEW: TextHighlighter: "@word" special command allows to define the regular expression that defines what a word is.
2023-11-10 19:53:18 +01:00
Benoît Minisini
c795d95912 Profiling windows are now embedded in the workspace.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation.
* NEW: Profile files are now stored inside the ".profile" hidden directory of the project.
* NEW: Profiling windows are now embedded in the workspace.
* NEW: Profile files are now displayed in the project tree, inside the "Profiles" folder.
* NEW: The 'gitignore' file has been updated to ignore profile files.
2023-11-09 23:38:05 +01:00
Benoît Minisini
637879db26 Put the project name inside the profile file.
[GB.DEBUG]
* NEW: Put the project name inside the profile file.
2023-11-09 23:35:13 +01:00
Benoît Minisini
dbd5395941 TextHighlighter: Fix compilation when there are several alternative commands for a same state.
[GB.HIGHLIGHT]
* BUG: TextHighlighter: Fix compilation when there are several alternative commands for a same state.
2023-11-09 11:22:26 +01:00
Benoît Minisini
c81c73a3be FileChooser: The view buttons are now correctly updated when the view is changed from code.
[GB.FORM]
* NEW: FileView: New 'View' event that is raised when the 'View' property has changed.
* BUG: FileChooser: Use the new FileView 'View' event to correctly synchronize the view button states.
2023-11-06 19:13:05 +01:00
Benoît Minisini
c0603701f7 TextEditor: Do not draw top limit of cursor highlight on the first line and bottom limit on the last line.
[GB.FORM.EDITOR]
* NEW: TextEditor: Do not draw top limit of cursor highlight on the first line.
* NEW: TextEditor: Do not draw bottom limit of cursor highlight on the last line.
2023-11-06 12:15:50 +01:00
Benoît Minisini
87d2420aef TextEditor: First line can be folded again.
[GB.FORM.EDITOR]
* BUG: TextEditor: First line can be folded again.
* NEW: TextEditor: Draw folding signs a bit smaller.
2023-11-06 12:01:50 +01:00
Benoît Minisini
f87f2a2cad TextEditor: 'TextHighlighterTheme.GetIncludeColors()' is now '_GetIncludeColors()'.
[GB.FORM.EDITOR]
* BUG: TextEditor: 'TextHighlighterTheme.GetIncludeColors()' is now '_GetIncludeColors()'.
2023-11-05 23:19:38 +01:00
Benoît Minisini
fd8781cae4 FileView: 'ShowDetailed' is now deprecated. Update documentation
[GB.FORM]
* BUG: FileView: Setting 'ShowDetailed' to TRUE has now the same effect as setting 'View' to 'Detailed'.
* NEW: FileView: 'ShowDetailed' is now deprecated.
* BUG: Fix runtime deprecation messages.
* NEW: Update documentation.
2023-11-04 21:32:27 +01:00
Benoît Minisini
97e9ae0749 TextHighlighter: Fix 'ToRichText()' for GTK+ that is more strict on markup syntax.
[GB.HIGHLIGHT]
* BUG: TextHighlighter: Fix 'ToRichText()' for GTK+ that is more strict on markup syntax.
2023-11-04 15:49:27 +01:00
Benoît Minisini
df5e159c5e Open project dialog: Do not crash if there is no project template when creating a new project, even if it should not happen.
[DEVELOPMENT ENVIRONMENT]
* BUG: Open project dialog: Do not crash if there is no project template when creating a new project, even if it should not happen.
2023-11-03 20:48:00 +01:00
Benoît Minisini
5ebbcc6026 TextHighlighter: Implement the 'ToRichText()' method.
[GB.HIGHLIGHT]
* NEW: TextHighlighter: Implement the 'ToRichText()' method.
2023-11-03 20:45:29 +01:00
Benoît Minisini
7e93139c95 Option dialog: Theme change correctly update editor again.
[DEVELOPMENT ENVIRONMENT]
* BUG: Option dialog: Theme change correctly update editor again.
2023-11-03 20:35:32 +01:00
Benoît Minisini
97bb0b57b7 TextEditor: Highlight background of included highlighters the same way as 'gb.highlight', with colors.
[GB.FORM.EDITOR]
* NEW: TextEditor: Highlight background of included highlighters the same way as 'gb.highlight', with colors.
2023-11-03 20:34:30 +01:00
Benoît Minisini
a1db0cf233 Fix background highlighting of included highlighters.
[GB.HIGHLIGHT]
* BUG: Fix background highlighting of included highlighters.
2023-11-03 20:33:42 +01:00
Benoît Minisini
173e9a699d Another fix of 'gambas' highlighting when 'CanRewrite' is FALSE.
[GB.HIGHLIGHT]
* BUG: Another fix of 'gambas' highlighting when 'CanRewrite' is FALSE.
* BUG: Fix 'webpage' highlighting of '<%/%>'.
2023-11-03 18:07:06 +01:00
Benoît Minisini
e1fd4f9e78 Fix 'Highlight.LengthBefore' when strings have non-ASCII characters.
[GB.EVAL]
* BUG: Fix 'Highlight.LengthBefore' when strings have non-ASCII characters.
2023-11-03 17:53:54 +01:00
Benoît Minisini
7179b5f18d TextEditor: 'Highlight' property returns the highlighter key as before, not the highlighter display name.
[GB.FORM.EDITOR]
* BUG: TextEditor: 'Highlight' property returns the highlighter key as before, not the highlighter display name.
2023-11-03 13:43:49 +01:00
Benoît Minisini
5092c40096 BUG: Text editor: Procedure list popup works again.
[DEVELOPMENT ENVIRONMENT]
* BUG: Text editor: Procedure list popup works again.
2023-11-03 13:42:16 +01:00
Benoît Minisini
252617baef Fix 'gambas' highlighting when 'CanRewrite' is FALSE. Fix highlighting recursion when 'CanRewrite' is TRUE.
[GB.HIGHLIGHT]
* BUG: Fix 'gambas' highlighting when 'CanRewrite' is FALSE.
* BUG: Fix highlighting recursion when 'CanRewrite' is TRUE.
* NEW: TextHighlighter: 'ToHTML()', 'ToANSI()' and 'Paint()' now take the 'CanRewrite' property into account.
* NEW: Raise an error if we try to load 'gb.highlight' whereas 'gb.eval.highlight' is already loaded.
2023-11-03 01:21:44 +01:00
Benoît Minisini
982f48f0bb TextEditor: 'Keywords' property works again.
[GB.FORM.EDITOR]
* BUG: TextEditor: 'Keywords' property works again.
2023-11-02 21:17:23 +01:00
Benoît Minisini
6b15686060 Option dialog: Sort themes by name in the combobox.
[DEVELOPMENT ENVIRONMENT]
* NEW: Option dialog: Sort themes by name in the combobox.
2023-11-01 23:29:27 +01:00
Benoît Minisini
b9bdfc5363 Fix translation of color names.
[GB.HIGHLIGHT]
* BUG: Fix translation of color names.
2023-11-01 23:28:55 +01:00
Benoît Minisini
b7f65eebf1 Options dialog: Fix theme configuration.
[DEVELOPMENT ENVIRONMENT]
* NEW: Update French translation
* BUG: Options dialog: Fix theme configuration.
* BUG: Fix specifiic highlighters.
2023-11-01 18:27:24 +01:00
Benoît Minisini
b2e4cea881 Fix highlighter colors management.
[GB.HIGHLIGHT]
* NEW: TextHighlighter: Syntax for specifying a default to use if the color name is not defined in the theme.
* NEW: TextHighlighter: 'Key' is now the internal highlighter name.
* NEW: TextHighlighter: 'Name' now returns the highlighter display name.
* NEW: TextHighlighter: 'Register()' now takes the highlighter internal name, its display name, and the path of the definition file.
* BUG: TextHighlighter: 'List' property is now more accurate.
* NEW: TextHighlighter: 'Colors' is a new property that returns the color names used by a specific highlighter.
* BUG: TextHighlighterStyle: Fix the 'Background' property.
* NEW: TextHighlighterTheme: Make color names translatable.
* NEW: TextHighlighterTheme: Some colors are now registered as "common colors". They are returned by the 'Colors' property.
* NEW: TextHighlighterTheme: '_Register()' has been renamed as '_RegisterColor()'.
* NEW: Many highlighter fixes. Define default colors.
2023-11-01 18:26:15 +01:00
Benoît Minisini
f3419c8786 'TextHighlighter.CanRewrite' is now dynamic. 'TextHighlighter._Register()' is now 'TextHighlighter._RegisterColor()'.
[GB.FORM.EDITOR]
* BUG: 'TextHighlighter.CanRewrite' is now dynamic.
* BUG: 'TextHighlighter._Register()' is now 'TextHighlighter._RegisterColor()'.
2023-11-01 18:14:38 +01:00
Benoît Minisini
13be9a4a53 Calling 'Object.Attach()' on a control now triggers an automatic refresh.
[GB.WEB.GUI]
* NEW: Calling 'Object.Attach()' on a control now triggers an automatic refresh.
2023-10-31 19:02:23 +01:00
Benoît Minisini
0f3eb95f4b The component is now deprecated. Raise an error early if we try to load 'gb.eval.highlight' when 'gb.highlight' is loaded.
[GB.EVAL.HIGHLIGHT]
* NEW: The component is now deprecated.
* NEW: Raise an error early if we try to load 'gb.eval.highlight' when 'gb.highlight' is loaded.
2023-10-31 13:35:14 +01:00
Benoît Minisini
b891f3a81e Add a new process objet to the internal process object list after signals have been checked.
[INTERPRETER]
* BUG: Add a new process objet to the internal process object list after signals have been checked.
2023-10-31 13:26:18 +01:00
Benoît Minisini
350b5e8b22 Some fixes.
[GB.HIGHLIGHT]
* NEW: TextHighlighter: 'CanRewrite' is now dynamic.
* NEW: Highlighters whose name starts with an underscore are ignored by the 'TextHighlighter.List' property.
* NEW: Rename internal highlighters so that they are not returned by the 'TextHighlighter.List' property.
* NEW: Cosmetic changes in some highlighters.
2023-10-31 02:47:11 +01:00
Benoît Minisini
f6c54541f6 Use 'gb.highlight' instead of the deprecated 'gb.eval.highlight'.
[GB.MARKDOWN]
* BUG: Use 'gb.highlight' instead of the deprecated 'gb.eval.highlight'.
2023-10-31 02:37:10 +01:00
Benoît Minisini
051111520b Fix 'css' highlighting.
[GB.HIGHLIGHT]
* BUG: Fix 'css' highlighting.
2023-10-30 00:33:37 +01:00
Benoît Minisini
ef01ebe758 Implement commit highlight.
[DEVELOPMENT ENVIRONMENT]
* NEW: Implement commit highlight.
* OPT: Wait less for version control commands.
2023-10-30 00:06:42 +01:00
Benoît Minisini
d15b8726cb Fix compilation of numbers added (or substracted) to dates.
[COMPILER]
* BUG: Fix compilation of numbers added (or substracted) to dates.
2023-10-29 22:46:41 +01:00
Benoît Minisini
87dec4871e Fix compilation of short or byte constants.
[COMPILER]
* BUG: Fix compilation of short or byte constants.
2023-10-29 22:36:41 +01:00
Benoît Minisini
378623a500 Compile custom highlighter without using sub-processes.
[GB.HIGHLIGHT]
* NEW: Compile custom highlighter without using sub-processes.
2023-10-29 19:53:58 +01:00
Benoît Minisini
f111277e55 TextHighlighter: Implement 'ToANSI()' method.
[GB.HIGHLIGHT]
* NEW: TextHighlighter: Implement 'ToANSI()' method.
* BUG: Fix 'javascript' and 'sql' highlighting.
2023-10-29 19:38:53 +01:00
Benoît Minisini
e5944b8b50 Remove the 'Wait' instruction, that should be useless now.
[GB.HIGHLIGHT]
* BUG: Remove the 'Wait' instruction, that should be useless now.
2023-10-29 16:49:41 +01:00
Benoît Minisini
67d024b283 Résolution du conflit. 2023-10-29 16:48:59 +01:00
Benoît Minisini
4325f62269 Create custom highlighter component with two 'Shell' instructions. Add the 'limit' instruction.
[GB.HIGHLIGHT]
* BUG: Create custom highlighter component with two 'Shell' instructions, one for the compiler, and one for the archiver.
* NEW: Add the 'limit' command so that a state can define the 'TextHighlighter.Limit' flag.
* NEW: TextHighlighter: Handle the 'Limit' flag in the ToHTML() method.
* NEW: Use the 'limit' command in 'javascript' and 'diff' highlighting.
2023-10-29 16:48:08 +01:00
gambix
284c7c34dd Little patch to allow loading of slow generated texthighlighter
[GB.HIGHLIGHT]
BUG: TextHighLighter: Little patch to allow loading of slow generated texthighlighter
2023-10-29 15:30:47 +01:00
Benoît Minisini
587bc846a0 Fix 'sh' highlighting.
[GB.HIGHLIGHT]
* NEW: Fix 'sh' highlighting.
2023-10-29 01:43:00 +02:00
Benoît Minisini
f6367792f2 Try to enhance 'sh' highlighting.
[GB.HIGHLIGHT]
* NEW: Try to enhance 'sh' highlighting. Bash syntax is really cumbersome, so it will never be perfect.
2023-10-29 01:35:05 +02:00