Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
launch scite with a particular language lexer pre-selected
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Prash  
View profile  
 More options Aug 3 2012, 10:44 am
From: Prash <prash.n....@gmail.com>
Date: Fri, 3 Aug 2012 07:44:21 -0700 (PDT)
Local: Fri, Aug 3 2012 10:44 am
Subject: launch scite with a particular language lexer pre-selected
Hi,
The nature of my query makes it difficult to figure out if the
question has been asked already. If so, I'd be grateful if you could
direct me to that thread.

I have a shell script (yaourt on Arch Linux) that launches a text
editor for some files (the names could be PKGBUILD, *.install, or
something else). The opened file is either a Bash script or has a bash-
like syntax. If I want syntax highlighting, I have to click on
Language->Shell. What command-line arguments could I use to launch
scite such that the subsequent "-open:xxx" would pre-select the Shell
lexer for xxx?

Going through http://www.scintilla.org/SciTEDoc.html and
http://www.scintilla.org/SciTEFAQ.html did not help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil Hodgson  
View profile  
 More options Aug 3 2012, 5:47 pm
From: Neil Hodgson <nyamaton...@me.com>
Date: Sat, 04 Aug 2012 07:47:49 +1000
Local: Fri, Aug 3 2012 5:47 pm
Subject: Re: [scite] launch scite with a particular language lexer pre-selected
Prash:

> I have a shell script (yaourt on Arch Linux) that launches a text
> editor for some files (the names could be PKGBUILD, *.install, or
> something else). The opened file is either a Bash script or has a bash-
> like syntax.

   If you use #! to specify the interpreter in these files then you can use http://www.scintilla.org/SciTEDoc.html#property-shbang

   Neil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prash  
View profile  
 More options Aug 4 2012, 6:46 pm
From: Prash <prash.n....@gmail.com>
Date: Sat, 4 Aug 2012 15:46:03 -0700 (PDT)
Local: Sat, Aug 4 2012 6:46 pm
Subject: Re: launch scite with a particular language lexer pre-selected
Thank you for the reply. But I can't really control the content of
these files.

Here is some more context: Arch Linux has a package build system that
calls various shell scripts, and these scripts are not meant to be
executed on their own, and so, do not have the #! line. Also, these
scripts are written by many (hundreds of?) people, and in a very
specific format. The scripts sets a few specific variables, defines a
few specific functions, etc. The package installer that I use launches
my chosen editor to let me quickly examine or modify these files
before I install each package.

On Aug 3, 11:47 pm, Neil Hodgson <nyamaton...@me.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil Hodgson  
View profile  
 More options Aug 5 2012, 7:17 pm
From: Neil Hodgson <nyamaton...@me.com>
Date: Mon, 06 Aug 2012 09:17:58 +1000
Local: Sun, Aug 5 2012 7:17 pm
Subject: Re: [scite] launch scite with a particular language lexer pre-selected
Prash:

> Here is some more context: Arch Linux has a package build system that
> calls various shell scripts, and these scripts are not meant to be
> executed on their own, and so, do not have the #! line.

   You can try setting the lexer for files called * but that will interfere with settings for particular extensions:
lexer.*=bash

   Neil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philippe Lhoste  
View profile  
 More options Aug 8 2012, 4:57 am
From: Philippe Lhoste <Phi...@GMX.net>
Date: Wed, 08 Aug 2012 10:57:36 +0200
Local: Wed, Aug 8 2012 4:57 am
Subject: Re: launch scite with a particular language lexer pre-selected
On 05/08/2012 00:46, Prash wrote:

> Thank you for the reply. But I can't really control the content of
> these files.

> Here is some more context: Arch Linux has a package build system that
> calls various shell scripts, and these scripts are not meant to be
> executed on their own, and so, do not have the #! line. Also, these
> scripts are written by many (hundreds of?) people, and in a very
> specific format. The scripts sets a few specific variables, defines a
> few specific functions, etc. The package installer that I use launches
> my chosen editor to let me quickly examine or modify these files
> before I install each package.

If the others suggestions don't suit you, you can use a solution to
reduce the inconvenience: if you look into the global properties file,
you will find keyText and some other definitions used in the
menu.language property.
You can copy these definitions into your user properties file and modify
it to your taste (I have my own set of language choice.
And I defined, for example, a
   keyJava=Ctrl+Shift+F12
property that I used in the Java entry:
   &Java|java|$(keyJava)|\

You can do the same for your language, thus after opening it you will
see it in plain text, but with a key hit (eg. F12 for quick access) you
will switch to your language. That's an additional operation, so not as
convenient as a default setting, but that becomes a minor annoyance.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  http://PhiLho.deviantART.com
--  --  --  --  --  --  --  --  --  --  --  --  --  --


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prash  
View profile  
 More options Aug 9 2012, 10:33 am
From: Prash <prash.n....@gmail.com>
Date: Thu, 9 Aug 2012 07:33:52 -0700 (PDT)
Local: Thurs, Aug 9 2012 10:33 am
Subject: Re: launch scite with a particular language lexer pre-selected

On Aug 8, 10:57 am, Philippe Lhoste <Phi...@GMX.net> wrote:

Thanks! I have done as you suggested now.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Panter  
View profile  
 More options Aug 17 2012, 2:05 am
From: Martin Panter <vadmium...@gmail.com>
Date: Fri, 17 Aug 2012 06:05:36 +0000
Local: Fri, Aug 17 2012 2:05 am
Subject: Re: [scite] launch scite with a particular language lexer pre-selected
On 05/08/2012, Neil Hodgson <nyamaton...@me.com> wrote:

> Prash:

>> Here is some more context: Arch Linux has a package build system that
>> calls various shell scripts, and these scripts are not meant to be
>> executed on their own, and so, do not have the #! line.

>    You can try setting the lexer for files called * but that will interfere
> with settings for particular extensions:
> lexer.*=bash

Hi Prash

I also use Arch and occasionally use Scite to edit PKGBUILD files. In
my “.SciTEUser.properties” file I have the following line which
automatically sets the lexer:

lexer.PKGBUILD=bash

Link to full file: (but I’m pretty sure the only relevant bit is the
line line above)
https://github.com/vadmium/etc/blob/master/scite/SciTEUser.properties


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »