[ jEdit-users ] Preferred Syntax Highlighting

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-users ] Preferred Syntax Highlighting

Darien Brown
Over the years, jEdit has acquired highlighting for quite a few languages. Highlighting is based on the filename ending and there are some obscure languages with conflicting endings. For example, Progess 4GL and POP11 both use .p. There are also languages with multiple "modes" like ColdFusion where a .cfc file may be in normal ColdFusion mode or may actually be CFScript (anyone with any shred of decency uses CFScript).

Is there any way to tell jEdit the preferred mode for an ending without resorting to editing the catalog or adding buffer options to every file? Perhaps there could be a way to set the syntax by extension in the Global Options?



------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-users ] *** SPAM *** Preferred Syntax Highlighting

Eric Le Lay
Administrator
Le Thu, 14 Jul 2016 11:30:53 -0400,
Darien Brown <[hidden email]> a écrit :

> Over the years, jEdit has acquired highlighting for quite a few
> languages. Highlighting is based on the filename ending and there are
> some obscure languages with conflicting endings. For example, Progess
> 4GL and POP11 both use .p. There are also languages with multiple
> "modes" like ColdFusion where a .cfc file may be in normal ColdFusion
> mode or may actually be CFScript (anyone with any shred of decency
> uses CFScript).
>
> Is there any way to tell jEdit the preferred mode for an ending
> without resorting to editing the catalog or adding buffer options to
> every file? Perhaps there could be a way to set the syntax by
> extension in the Global Options?

Hi Darien,

you can add the .p extension for PostgreSQL by
 - going to Utilities / General Options / Editing
 - selecting PostgreSQL in the combo-box, unchecking "Use defaults" and
   entering *.{p,pg_sql,pg-sql} as the file name pattern.

For reference, see
http://jedit.org/users-guide/modes.html#mode-selection

Cheers,
Eric

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Users' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-users
Loading...