Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: vim dxl-extension?
Topic Summary:
Created On: 19-Dec-2005 11:12
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 19-Dec-2005 11:12
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

Hello,

does someone have a dxl-extension, for syntax highlighting and indentation for the vim editor?

Would be great if there is one

Thanks in advance,

Ben
Report this to a Moderator Report this to a Moderator
 19-Dec-2005 12:16
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Ben,

you may have a look into my posting Editor of choice - Ultraedit new Wordfile for DXL?!

May be you can adapt this file to work with VIM?!

Or of cause, you could use Ultraedit

Greetings
Reik Schröder

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 19-Dec-2005 16:40
User is offline View Users Profile Print this message


David Knight

Posts: 4
Joined: 10-Jun-2005

Ben, I have created one that does basic syntax highlighting, but it doesn't do indentation correctly. I'm assuming you are familiar with VIM, so I've attached the files. You'll need to add a dxl filetype so VIM can recognize files (see filetype.vim). The syntax file is dxl.vim. Let me know if it works for you or if you have other questions. David

dxl.vim
dxl.vim  (5 KB)
filetype.vim
filetype.vim  (0 KB)



-------------------------
David Knight
BAE Systems, Land & Armaments
Report this to a Moderator Report this to a Moderator
 19-Dec-2005 20:23
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

This is my dxl.vim file which does the syntax highlighting, I haven't tried to configure auto-indentation.
Report this to a Moderator Report this to a Moderator
 19-Dec-2005 22:18
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Hi Everyone,

I also use VIM for editing DXL code - given that DXL is very "C" like in it's programming structure, I took a simple approach by copying the C.VIM syntax file which has all of the auto indentation bells and whistles and just modified it to include all of the DXL specific keywords. A copy is attached.

-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 20-Dec-2005 16:09
User is offline View Users Profile Print this message


David Knight

Posts: 4
Joined: 10-Jun-2005

Thanks Paul. I'll have to try this, because I really want the indentation. I always assumed the C indentation wouldn't work quite right because DXL doesn't use semi-colons, but it must not matter. Maybe we can come up with a composite version that handles everything well.

-------------------------
David Knight
BAE Systems, Land & Armaments
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.