Ticket #4316 (closed enhancement: fixed)

Opened 18 months ago

Last modified 18 months ago

Add basic Ngspice syntax highlighting

Reported by: gszymaszek Owned by: andrew_b
Priority: minor Milestone: 4.8.28
Component: mcedit Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset: committed-master


Ngspice is the open source spice simulator for electric and electronic circuits.

The attached patch adds basic support for highlighting Ngspice/SPICE circuit description files syntax. Two main contexts are defined:

  • the default context, where the circuit is described,
  • the control script context (between .control and .endc).

The default context highlights dot commands, circuit element instance names and model types. The control script context highlights supported functions/commands and known variables. Both contexts highlight comments and line continuation marks.

Other than two FIXMEs, it is a known issue the first line of the file is part of the default context, while in most cases it would contain the file title.


0001-Add-basic-Ngspice-syntax-highlighting.patch (16.2 KB) - added by gszymaszek 18 months ago.

Change History

Changed 18 months ago by gszymaszek

comment:1 Changed 18 months ago by andrew_b

  • Owner set to andrew_b
  • Status changed from new to accepted
  • Milestone changed from Future Releases to 4.8.28

comment:2 Changed 18 months ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset set to committed-master
  • Resolution set to fixed

comment:3 Changed 18 months ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.