Comments (9)
Can you be more specific about what you mean by "make it work"?
I use nedit/nedit-ng mostly with C++, so I can only really speak towards that. Basically, when the cursor is on a given position which is just after (before?) a bracket, it will highlight the matching bracket. If it is in "range" mode, then the whole range between the two brackets is highlighted.
Syntax-based, simply means that it uses syntax highlighting data to locate the match.
Additionally, I can hit Ctrl+m
and it will jump to the match (holding shift will select the range between).
from nedit-ng.
Hi,
Sorry, I was not precise enough.
It works for me with brackets, square brackets, parenthesis, ... stuff like this.
But i'd like to make it work for begin/end statements for ex (or case/endcase, ...).
As far as I remember, I could make it work that way. But I don't remember if I had to use a special routine or if it was working "out of the box".
Regards.
Xuo.
from nedit-ng.
I am not particularly aware of how it would work for anything but braces. I'll look to see how the original code handled it and see if it was doable.
It would be a nice feature though...
from nedit-ng.
Hi,
In an old native nedit.rc file, I've found the following :
nedit.matchPatterns: PLAIN:Default\n
Ada:Default\n
...
Verilog:{\n
Round braces::fp:s:"(":e:")":\n
Curly braces::fp:s:"{":e:"}":\n
Squared braces::fp:s:"[":e:"]":\n
begin_end::f:sw:"begin":ew:"end":\n
}\n
...
I'll try to see if I can use it again in the native nedit.
Regards.
Xuo.
from nedit-ng.
Hi,
For csh, this is what I had :
Csh:{\n\
Double Quotes:s:cfm:s:"""":\n\
Single Quotes:s:cfm:s:"'":\n\
Squared braces:s:f:s:"[":e:"]":\n\
Round braces:s:f:s:"(":e:")":\n\
Curly braces:s:f:s:"{":e:"}":\n\
if statement:s:f:sw:"if":mw:"else":ew:"endif":\n\
switch statement:s:f:sw:"switch":mw:"case":mw:"default":ew:"endsw":\n\
foreach statement:s:f:sx:"foreach":ew:"end":\n\
while statement:s:f:sw:"while":ew:"end":\n\
statement group:g:Double Quotes:Single Quotes:if statement:switch statement:foreach statement:while statement:\n\
Braces:g:Double Quotes:Single Quotes:Squared braces:Round braces:Curly braces:\n\
}\n\
But I can't make it work even though I had this stuff manually in my native nedit.rc file.
Too bad.
Xuo.
from nedit-ng.
To be clear, it also doesn't work in original nedit, right?
if you find a case where it works in the original nedit, but not nedit-ng, please let me know by reopening this issue.
Closing for now.
from nedit-ng.
Hi,
The developers of the native nedit gave me a patch that gives the possibility for the user to define/create some matching rules.
Here is an example of what I did for Verilog files :
This patch is not included by default in the native nedit sources.
Regards.
Xuo.
from nedit-ng.
Interesting, If you send me the patch I can see how it applies to the original nedit and how it could he adapted to nedit-ng
from nedit-ng.
Hi,
Here it is :
mp050226-V3-1-CVS20080907-2.patch.txt
Regards.
Xuo.
PS :
To install the patch :
cd
patch -p1 < ./mp050226-V3-1-CVS20080907-2.patch
make docs
make linux
from nedit-ng.
Related Issues (20)
- crash with db4b7c4b HOT 2
- package for Windows HOT 31
- Block drag and drop overwrite/lost character HOT 1
- crash with 2020.1-204-gfd49503 HOT 7
- Windows Split Pane does not retain position HOT 6
- Non-UI preferences should not be saved, breaking nc autostart HOT 5
- Build issue with current head HOT 14
- carriage return when pasting from terminal HOT 8
- Font family alias warnings on macOS HOT 1
- long -svrname argument HOT 3
- crash with latest commit HOT 17
- Using `DISPLAY` when calculating the local socket to use can cause issues HOT 1
- QT version 5.5 or 5.15? HOT 21
- [enhancement] Save and/or reload all files options in Shell menu item HOT 1
- Cursor blink phase does not reset when user enters character
- crash with 857d42e HOT 5
- macro execution stopped HOT 2
- nedit-import: Convert shortcuts to valid QT equivalents HOT 2
- Quick search: implement Clear&Paste by single click of middle mouse button HOT 2
- macro sub focus_window(next) does nothing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nedit-ng.