Giter Site home page Giter Site logo

Comments (9)

eteran avatar eteran commented on May 30, 2024

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.

ericxuo avatar ericxuo commented on May 30, 2024

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.

eteran avatar eteran commented on May 30, 2024

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.

ericxuo avatar ericxuo commented on May 30, 2024

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.

ericxuo avatar ericxuo commented on May 30, 2024

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.

eteran avatar eteran commented on May 30, 2024

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.

ericxuo avatar ericxuo commented on May 30, 2024

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 :
screenshot_20180915_215454

This patch is not included by default in the native nedit sources.

Regards.

Xuo.

from nedit-ng.

eteran avatar eteran commented on May 30, 2024

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.

ericxuo avatar ericxuo commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.