public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: khamis2@t-online.de (Khamis Abuelkomboz)
To: "Source-Navigator Group" <sourcenav@sources.redhat.com>
Subject: New Release of HTML Parser (ASP Support)
Date: Tue, 01 Jan 2002 09:53:00 -0000	[thread overview]
Message-ID: <001401c192eb$ac067a00$897ba8c0@power> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 4291 bytes --]

 Hi All,

The new release of the HTML Parser supports ASP scripts (HTML, JScript and VBScript).
(See http://oimanager.de/sn.htm for more information)

1. Internet Development
The following parsers extend the list of Source-Navigator languages to support highlighting HTML, XML and Property Files. This Extension including the Source-Navigator JAVA parser is in my opinion essential for easy and powerful development.

New! supports ASP (Java Script and VBScript).

The new release of this parser combines the three parsers (html, vbscript and jscript) to provide full support for ASP files based on both languages.

     The parser understands the routine <%LANGUAGE="SCRIPT LANGUAGE"%>, based on this information the parser determines the language is being parsed in the brackets <%...%>.

      Default (when this routine fails) is VBSCRIPT
     
     It also understands the routine <SCRIPT LANGUAGE=" SCRIPT LANGUAGE"> and switches automatically parsering the correct language.

      Default for <SCRIPT> (when LANGUAGE option fails) is JSCRIPT.
     
     <%..%> within strings are also parsed for the actual language.
     
     functions and subs (in vbscript) are added to the symbol list.
     
     <SCRIPT> and <%..%> are supported in continues combinations
     
     IMPORTANT! you need to download the three parsers:

      html.exe, jscript.exe and vbas.exe

      including hyper.exe,  sn_prop.cfg and sninit.tcl (see below for installation instructions) 
     
     See Screen shot 

1.1 HTLM-Parser
     Installation
     

       Step 1 

    replace/copy hyper.exe html.exe into <SN>/bin

    edit <SN>/share/etc/sn_prop.cfg and add the following lines:

    # html
    sn_add_parser html \
            -suffix {*.htm *.html *.xml} \
            -brow_cmd $sn_path(bindir)/html \
            -high_cmd $sn_path(bindir)/html

    or download sn_prop.cfg

       Step 2 

    Edit <SN>/share/sourcenav/gui/sninit.tcl in SN5.0

    and replace following line



    OR

    download sninit.tcl 

     Notice: You need to download hyper.exe to allow auto highlighting
     
     Screen Shot
     

1.2 JScript Parser
You need this parser in combination with the html parser (ASP support).

     Installation

      1. copy hyper.exe and jscript.exe into <SN>/bin

      2. Edit <SN>/share/etc/sn_prop.cfg and add the following lines:

      # JScript
      sn_add_parser jscript  \
         -suffix {*.js *.jscript} \
         -brow_cmd $sn_path(bindir)/jscript \
         -high_cmd $sn_path(bindir)/jscript

      or copy sn_prop.cfg to <SN>/share/etc/sn_prop.cfg 

      3. copy sninit.tcl into <SN>/share/sourcenav/gui/sninit.tcl
     

1.3 Properties Parser
     Installation
     

1.     Copy prop.exe into <SN>/bin

2.     Edit <SN>/share/etc/sn_prop.cfg and add the following lines:

# html
sn_add_parser prop \
   -suffix {*.htm *.html *.xml} \
   -brow_cmd $sn_path(bindir)/prop \
   -high_cmd $sn_path(bindir)/prop

or download sn_prop.cfg


     Screen Shot 

2 Visual Basic Parser
Visual Basic is widely used and I found to make a new parser for this language will let a lot of people benefit of having Source-Navigator supporting it.

Visual Studio is actually good enough to go and write a parser for Visual Basic, but it lakes of analysis base.

The Parser now is case insensitive.



     Download for Windows Platforms: hyper.exe vbas.exe
     
     Installation
     

    1. Copy hyper.exe and vbas.exe into <SN>/bin

    2. Edit <SN>/share/etc/sn_prop.cfg and add the following lines:

    # Visual Basic
    sn_add_parser vbas \
         -suffix {*.cls *.frm *.bas} \
         -brow_cmd $sn_path(bindir)/vbas \
         -high_cmd $sn_path(bindir)/vbas

    or download sn_prop.cfg

    3. Edit <SN>/share/sourcenav/gui/sninit.tcl in SN5.0

    and replace following line

    << sninit.tcl: set sn_options(sys,builtin-highlighting) {c++ java tcl chill python html}
    with
    >> sninit.tcl: set sn_options(sys,builtin-highlighting) {c++ java tcl chill python html vbas} 

    Or download sninit.tcl

     Notice: You need to download hyper.exe to allow auto highlighting
     
     Screen Shot
     


[-- Attachment #1.2: Type: text/html, Size: 18983 bytes --]

[-- Attachment #2: sumbul1a.gif --]
[-- Type: image/gif, Size: 331 bytes --]

                 reply	other threads:[~2002-01-01 17:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001401c192eb$ac067a00$897ba8c0@power' \
    --to=khamis2@t-online.de \
    --cc=sourcenav@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).