1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-08-22 11:25:08 +00:00
Commit graph

59 commits

Author SHA1 Message Date
FellippeHeitor
46b3e05380 Separates the list of keywords to highlight from ide_globals. 2021-01-17 12:03:31 -03:00
FellippeHeitor
032dd33b6f Adds ability to search only in comments and strings. 2021-01-06 02:17:19 -03:00
FellippeHeitor
c88c56330c Adds "Ignore comments" and "Ignore strings" to search. 2021-01-06 00:09:22 -03:00
FellippeHeitor
bd54eb0f39 Attempts at implementing _MEMSOUND 2020-12-31 01:40:54 -03:00
FellippeHeitor
529a162816 Allows disabling the Syntax Highlighter entirely (Options menu). Also:
- Disables Syntax Highlighter automatically if rendering takes longer than a second.
2020-12-28 23:35:00 -03:00
Luke Ceddia
3ac1244df5 Add OPTION _EXPLICITARRAY 2020-07-15 21:31:11 +10:00
Fellippe Heitor
016e3d4b73 Merge remote-tracking branch 'origin/font8' into development 2020-01-19 11:24:37 -03:00
FellippeHeitor
a114182f8a Allows using _FONT 8 for the IDE 2020-01-18 03:27:51 -03:00
FellippeHeitor
e30f19b38a Makes $COLOR constansts an external includable file. 2020-01-18 00:20:54 -03:00
FellippeHeitor
8ac94a3142 Reduces memory usage for $NOPREFIX keyword list + simplifies highlighting. 2020-01-07 07:53:12 -03:00
FellippeHeitor
2ebaeab3c6 Initial implementation of $NOPREFIX
Allows QB64-specific keywords to be called without the leading underscore.

Per user and per project; affects nothing globally.

Allows prefixed keywords to be used even when it's set.
2020-01-04 16:13:13 -03:00
FellippeHeitor
7c9eafbadb Replaces _TOGGLE_(KEY)LOCK with _(KEY)LOCK ON/OFF/_TOGGLE. Also:
- Changes CFont to sub__consolefont and func_CInp to func_cinp, in alignment with the rest of libqb/qbx.
- Adds stubs to all new console functionality, so we can still ship for other OSes with no bigger issues.
- Adds new keywords to syntax highlighter.
2020-01-02 19:55:58 -03:00
FellippeHeitor
2f7510715e Adds $ASSERTS and _ASSERT to syntax highlighter. 2020-01-01 19:03:49 -03:00
FellippeHeitor
acb6209206 Fixes incorrect linking functionality of Status Area. 2019-12-29 23:22:22 -03:00
Fellippe Heitor
5bd3d3728b
Merge pull request #112 from QB64Cobalt/development
Added new bit routines to keyword list.
2019-12-17 12:45:03 -03:00
QB64Cobalt
823bc38076
Added new bit routines to keyword list. 2019-12-17 06:58:41 -08:00
FellippeHeitor
e74c1fb9e3 Adjusts "Ignore #Warnings" menu item according to +
+ the rest of the menu implementation.
2019-12-07 19:36:43 -03:00
SteveMcNeill
449bdecacd Adding ZLIB into the QB64 parts system for windows.
Two new keywords added:
FUNCTION _INFLATE$ (text$)
FUNCTION _DEFLATE$ (text$)

Use of these commands can compress and decompress strings using the ZLIB library.
2019-08-27 18:22:07 -04:00
FellippeHeitor
3902a36056 New "Compilation status" dialog, for when there are warnings to show. +
- Rewording of menu items;
- New menu item in the View menu to show "Compilation status" dialog;
2019-01-13 03:26:48 -02:00
FellippeHeitor
738c8d9bb5 Removes unused variables declared across qb64.bas and includes. 2019-01-12 21:09:31 -02:00
FellippeHeitor
62599774a1 Adds _SHR/_SHL to keywords list for syntax highlighting. 2018-10-30 00:35:12 -03:00
FellippeHeitor
d710b9acce Adds "Enable quick navigation" option in the Search menu. +
Allows disabling the Back arrow when navigating a program.
2018-09-17 22:19:10 -03:00
FellippeHeitor
975408e2ef _DROPPEDFILE$ now takes an optional index parameter.
- Allows using _DROPPEDFILE as an array ranging from 1 TO _TOTALDROPPEDFILES.
- Using _DROPPEDFILE as an array doesn't reset _TOTALDROPPEDFILES (unlike when reading _DROPPEDFILE$ sequentially with no parameter), so it's necessary to call _FINISHDROP after working with the list of dropped files so it'll be reset.
2018-07-31 10:24:52 -03:00
FellippeHeitor
ed28f453f0 Adds _TRIM$ (both left and right TRIM). 2018-07-17 02:35:17 -03:00
FellippeHeitor
bc6b427a99 Implements _INSTRREV, to search for the last occurence of a substring.
The statement works as INSTR does but starts from the end of the passed string (or from the specified position) and looks for the passed substring while moving backards.

Takes after VBScript's InStrRev: https://www.w3schools.com/asp/func_instrrev.asp

Closes #51
2018-07-15 16:43:12 -03:00
FellippeHeitor
729a1dd465 Adds new keywords to syntax highlighter. 2018-06-29 12:14:08 -03:00
FellippeHeitor
7f075c4779 Adds _CONNECTIONADDRESS without [$] to the syntax highlighter list. 2018-05-30 19:14:01 -03:00
FellippeHeitor
fc607aa613 Add Line Number options to submenu in View menu. Also:
- Adds submenus.
- Renamed "Save EXE in the source folder" to "Output EXE to source folder" in Run menu.
- Changed behavior of disabled menu items; instead of closing the menu, do nothing.
2018-01-02 03:11:08 -02:00
FellippeHeitor
fb9a54a210 Mouse input adapted to work when line numbers are visible. Also:
Line numbers use the same color assigned to "line highlight".
2017-10-31 03:51:19 -02:00
FellippeHeitor
c096896105 Adds -l:line# command line switch to start the ide at a certain line. 2017-10-30 11:23:15 -02:00
FellippeHeitor
88d6911ec9 Add option to toggle Line Numbers from View menu. Also:
- Align line numbers to right;
- Highlight line number of current line;
2017-10-30 11:22:33 -02:00
FellippeHeitor
292dbbf49d Add "Show compilation errors immediately" to Options menu.
By unchecking the new switch in the Options menu, the IDE won't warn and "red-light" every single mistake until you tell it to start compilation with F5.

Signed-off-by: FellippeHeitor <fellippeheitor@gmail.com>
2017-10-14 04:09:54 -03:00
FellippeHeitor
9ab94215db Custom keywords highlighting (SUB/FUNCTION/custom dictionary).
- SUBs and FUNCTIONs names will be highlighted throughout the code.
- The same color assigned to metacommands is used for custom keywords.
- A custom dictionary can also be added to internal/config.txt.
- SUBs and FUNCTIONs in $INCLUDEd files also get highlighted, as long as there aren't any errors preventing compilation.

Signed-off-by: FellippeHeitor <fellippeheitor@gmail.com>
2017-10-14 01:15:09 -03:00
FellippeHeitor
623f733d69 Updated list of keywords. 2017-10-10 01:38:56 -03:00
FellippeHeitor
a16c9a4093 Makes bracket highlight/multi-selection highlight color customizable. Also:
- Minor improvements to syntax highlighter;
- Hides cursor and line highlight when window loses focus (Windows-only);
2017-10-08 22:44:40 -03:00
FellippeHeitor
f5bb8a90bd Adds ENDIF to valid keyword for highlight. 2017-10-08 22:38:59 -03:00
FellippeHeitor
e8e1da2987 Add ENDIF (no space) and ? (question mark) to valid keywords. 2017-10-07 03:08:43 -03:00
FellippeHeitor
7c383a05a7 Add SMOOTH and STRETCH to keywords list. Fixes $IF block highlighting. 2017-10-04 00:50:49 -03:00
FellippeHeitor
8e68dd06d4 Cleaned up list of keywords. Minor tweak to $END IF colorization. 2017-10-03 23:43:47 -03:00
FellippeHeitor
b60fdb780a Fine adjustments to syntax highlighting. 2017-10-03 11:52:03 -03:00
FellippeHeitor
739aaef7ac Improves syntax highlighter with Keyword Highlight. 2017-10-02 01:16:35 -03:00
FellippeHeitor
5f822f21ce Adds multi-highlight.
When a a single-line selection is made, every instance of the same "word" on the current screen gets highlighted. Can be disabled in Options->IDE colors.
2017-09-25 02:30:40 -03:00
FellippeHeitor
b3afefe0dc Adds the ability to show contextual help (syntax) for SUB/FUNCTIONs. 2017-08-04 10:59:11 -03:00
FellippeHeitor
60e4054aa5 Double-clicking on an $INCLUDE statement opens the file in a new window. 2017-05-14 23:10:47 -03:00
FellippeHeitor
665dd67641 Remove SUB sorting in the SUBs dialog. 2017-01-20 22:56:50 -02:00
FellippeHeitor
3045f6d7f5 Add preset color schemes and ability to create user defined schemes. 2016-08-02 03:17:15 -03:00
FellippeHeitor
58199f7c22 Implements Bracket Highlighting
When the cursor is on a an open "(" or closing ")" bracket, the matching pair, to the left or right, will be highlighted (as seen in modern IDEs, like https://blogs.msdn.microsoft.com/zainnab/2010/09/07/automatic-delimiter-highlighting/)

Also:
- Overall visual adjustments.
- Improved IDE Colors dialog (Options menu), which includes an option to disable bracket highlighting.
- Adds Ctrl+S as a shortcut for File->Save.
- Displays an * on the filename in the title bar below the menu bar when the source has been edited.
- Fixes an old bug that would color strings incorrectly when the source view was scrolled to the right.
- Enables block indent functionality in the Edit menu even when autoindent is on.
- Allows the View SUBs dialog (F2) to be invoked while focus is on the quick search bar.
2016-07-31 17:36:14 -03:00
FellippeHeitor
ba968213a5 Add an RGB color mixer for inputting/editing _RGB/32/A/A32 values.
Upon entering any _RGB statement, the IDE will offer to launch the mixer dialog, which can be done by hitting Shift+ENTER. Right-clicking existing statements allows triggering the mixer dialog from the contextual menu.
2016-06-28 01:34:06 -03:00
FellippeHeitor
8f67d40330 Add "Save EXE in the source folder" to the Run menu.
(Windows only for now)
When active, this new setting will instruct the compiler to save the .EXE in the same folder as the source file. If the current program is not yet saved, the .EXE is placed in the same folder as QB64.EXE, as usual.

Also:
- When "Make EXE only (F11)" is used, the status area will show "Location: " and a link to the folder where the .EXE was saved. Clicking it launches Windows Explorer.
2016-06-21 03:38:42 -03:00
FellippeHeitor
218536343a Add "Cursor after pasted content" to Options menu.
Default behavior (which mimics Qbasic) is to keep the cursor in place even after pasting from the clipboard. This new option alters such behavior to act as modern systems, placing the cursor after the pasted content.

Also:
- Add visual indication that mouse buttons have been swapped (Options menu);
- Allows opening menus with a right-click (in case you forget you swapped mouse buttons);
- Minor tweaks to Code layout dialog box.
2016-05-07 01:38:52 -03:00