pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: color coding of syntax


From: Ben Pfaff
Subject: Re: color coding of syntax
Date: Wed, 7 Feb 2024 08:31:48 -0800

That's the right place and it looks like the right contents. My guess
that it was misplaced seems wrong.

Assuming these two machines both have the same version of PSPP, I
don't know what else to guess.

On Wed, Feb 7, 2024 at 8:24 AM ft gmail <public.ftr@gmail.com>
<blp-forward@cs.stanford.edu> wrote:
>
> Once you gave me the name of the file with the color codes as pspp.lang I 
> found it in C:\Program Files\PSPP\share\pspp .
>
> Is this the correct place ?
>
> And this is the content. Is there anything wrong in it ?
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>    PSPP - a program for statistical analysis.
>    Copyright (C) 2006, 2009 Free Software Foundation, Inc.
>
>    This program is free software: you can redistribute it and/or modify
>    it under the terms of the GNU General Public License as published by
>    the Free Software Foundation, either version 3 of the License, or
>    (at your option) any later version.
>
>    This program is distributed in the hope that it will be useful,
>    but WITHOUT ANY WARRANTY; without even the implied warranty of
>    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>    GNU General Public License for more details.
>
>    You should have received a copy of the GNU General Public License
>    along with this program.  If not, see <http://www.gnu.org/licenses/>.
> -->
>
>
> <language id="pspp" _name="PSPP" version="2.0" _section="Sources">
>
>   <styles>
>     <style id="string" _name="String" map-to="def:string"/>
>     <style id="escaped-character" _name="Escaped Character" 
> map-to="def:special-char"/>
>     <style id="data-block" _name="Data Block" map-to="def:preprocessor"/>
>     <style id="included-file" _name="Included File" map-to="def:string"/>
>     <style id="char" _name="Character" map-to="def:character"/>
>     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
>     <style id="type" _name="Data Type" map-to="def:type"/>
>     <style id="comment" _name="Comment" map-to="def:comment"/>
>   </styles>
>
>   <default-regex-options case-sensitive="false" />
>
>   <definitions>
>
>     <context id="pspp">
>
>       <include>
>
>         <context id="comment-star" style-ref="comment">
>           <start>^[\t ]*\*</start>
>           <end>^[\t ]*$|^(?=[^\t ])</end>
>         </context>
>
>         <context id="comment-keyword" style-ref="comment">
>           <start>^[\t ]*COMMENT</start>
>           <end>\.[\t ]*$|^[\t ]*$|^(?=[^\t ])</end>
>         </context>
>
>         <context id="data-block" style-ref="data-block">
>           <start>(?&lt;=(^BEGIN DATA$))</start>
>           <end>(?=(^END DATA\.?))</end>
>     </context>
>
>         <context id="string-double" end-at-line-end="true"
>                  style-ref="string">
>           <start>"</start>
>           <end>"</end>
>         </context>
>
>         <context id="string-single" end-at-line-end="true"
>                  style-ref="string">
>           <start>'</start>
>           <end>'</end>
>         </context>
>
>     <context id="keywords" style-ref="keyword">
>           <keyword>ALL</keyword>
>           <keyword>AND</keyword>
>           <keyword>BY</keyword>
>           <keyword>EQ</keyword>
>           <keyword>GE</keyword>
>           <keyword>GT</keyword>
>           <keyword>LE</keyword>
>           <keyword>LT</keyword>
>           <keyword>NE</keyword>
>           <keyword>NOT</keyword>
>           <keyword>OR</keyword>
>           <keyword>TO</keyword>
>           <keyword>WITH</keyword>
>         </context>
>
>       </include>
>     </context>
>   </definitions>
>
>
> </language>
>
> Le 07/02/2024 à 17:12, Ben Pfaff a écrit :
>
> My best guess is that the pspp.lang file, which specifies how to do
> syntax highlighting, is somehow missing or misplaced on the machine
> where text appears in all black. It's surprising; I don't know why
> that would have happened.
>
> On Tue, Feb 6, 2024 at 3:53 PM ft gmail <public.ftr@gmail.com> wrote:
>
> Hi,
>
> After an installation of pspp 2.0 on a second PC running under win 10 I found 
> that color coding of syntax worked whereas on another PC under win 11 I only 
> get a black syntax text. How to get a color-coded syntax  under win 11 ?
>
> TIA
>
> -ftr



reply via email to

[Prev in Thread] Current Thread [Next in Thread]