EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: SNL syntax highlight for text editors
From: "Andrew C. Starritt" <[email protected]>
To: Bruce Hill <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 25 Aug 2014 04:37:21 +0000

Hi all,

   I have some syntax high-highlighting files for kwrite/kate (attached).

There are three files, covering SNL,  database files (template, substitution and dbd files) and

for IOC shell scripts.

 

  These were based on existing high-light syntax files, for example the SNL

syntax file is based on the C syntax file with a few new key words.

 

   On CentOS 6, this live in   /usr/share/kde4/apps/katepart/syntax/

 

Regards

 

Andrew C. Starritt | Principal Controls Engineer | Australian Synchrotron
p: (03) 8540 4164 | f: (03) 8540 4200
[email protected] | www.synchrotron.org.au
800 Blackburn Road, Clayton, Victoria 3168

 

From: [email protected] [mailto:[email protected]] On Behalf Of Bruce Hill
Sent: Monday, 25 August 2014 8:39 AM
To: [email protected]
Subject: Re: SNL syntax highlight for text editors

 

Hi Tomas,
I have a set of vim syntax files that were originally created by Steve Lewis that you
might find useful.   They include syntax coloring for db files, request files, archive files, and SNL.
See the attached files which would be installed to the following paths:
~/.vim/filetype.vim
~/.vim/syntax/epics*.vim

Regards,
- Bruce

On 8/23/2014 3:00 PM, Mazanec Tomáš wrote:


Thanks Florian. That was swift. It will help me and my colleague to slip into SNL.

Syntax highlight for db? ... very interesting idea. Lets ask tech-talkers directly.

Regards,
Tomas


Od: Florian Feldbauer [[email protected]]
Odesláno: 23. srpna 2014 19:09
Komu: Mazanec Tomáš; [email protected]
Předmět: Re: SNL syntax highlight for text editors

Hey,

nice work!
I just created a syntax file for vim.
In principal I just extended the cpp syntax highlighting from vim...

Either copy the files to
  ~/.vim/ftdetect/snl_filetype.vim
  ~/.vim/syntax/snl.vim
ot (for system-wide use) to
  $VIM/vimfiles/ftdetect/snl_filetype.vim
  $VIM/vimfiles/syntax/snl.vim

Regards,
Florian

BTW: Are there syntax highlighting for db or protocol files? (Preferable for vim)


On 08/23/2014 12:11 AM, Mazanec Tomáš wrote:

Hi

Besides CSS's SNL editor, I didn't find any other hints about SNL syntax highlight for text editors or Integrated Development Environments.

I made a quick patch for Midnight Commander text editor -- its CXX syntax highlight definition file extended to deal with SNL keywords. However, I'm only basic with SNL, so it covers only apparent SNL features.

Could somebody share his/her solution for his/her favourite text editor ?
Any of Linux ones or preferably VIM/VI would be great.

Thanks,
Tomas

For Midnight Commander's MCEdit:
--------------------------------------------------------------------------------------------------------------------------
# Add two lines to Syntax file
file .\*\\.stt$ State\sNotation\sLanguage
include /home/epics/.mc/mcedit/snl.syntax
--------------------------------------------------------------------------------------------------------------------------
# copy and rename cxx.syntax file as follows:
--- cxx.syntax    2012-10-05 02:37:26.000000000 +0200
+++ snl.syntax    2014-08-22 23:11:37.589573091 +0200
@@ -1,4 +1,21 @@
 context default
+    keyword whole program brightmagenta
+    keyword whole ss brightmagenta
+    keyword whole state brightmagenta
+    keyword whole assign white
+    keyword whole to white
+    keyword whole entry white
+    keyword whole exit white
+    keyword whole when white
+    keyword whole monitor white
+    keyword whole option white
+    keyword whole int yellow
+    keyword whole short yellow
+    keyword whole long yellow
+    keyword whole char yellow
+    keyword whole float yellow
+    keyword whole double yellow
+    keyword whole string yellow
     keyword whole auto yellow
     keyword whole break yellow
     keyword whole case yellow
@@ -111,6 +128,7 @@
 
 context " " green
     spellcheck
+    keyword {*} brightgreen
     keyword \\" brightgreen
     keyword %% brightgreen
     keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen

--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------




-- 
----------------------------------------
| Dr. Florian Feldbauer                |
|                                      |
| Helmholtz-Institut Mainz /           |
| Johannes Gutenberg-Universität Mainz |
| Johann-Joachim-Becher-Weg 36         |
| D-55128 Mainz                        |
|                                      |
| Office: SB1 / 00-321                 |
| Phone:  (+49)6131 / 39-29605         |
----------------------------------------

 

Attachment: kwrite_highlight.tar.gz
Description: kwrite_highlight.tar.gz


Replies:
RE: SNL syntax highlight for text editors Mazanec Tomáš
References:
SNL syntax highlight for text editors Mazanec Tomáš
Re: SNL syntax highlight for text editors Florian Feldbauer
RE: SNL syntax highlight for text editors Mazanec Tomáš
Re: SNL syntax highlight for text editors Bruce Hill

Navigate by Date:
Prev: Re: SNL syntax highlight for text editors Bruce Hill
Next: Re: ePID deadband on output Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: SNL syntax highlight for text editors Bruce Hill
Next: RE: SNL syntax highlight for text editors Mazanec Tomáš
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·