AMPL editor with dark mode

594 views
Skip to first unread message

J C

unread,
May 5, 2021, 7:01:18 PM5/5/21
to AMPL-group
Hello all,

I am looking for a free AMPL editor with dark mode option and syntax highlighting to use in Windows 10. I found vim and atom in the web sites, but none explain clearly how to configure and install them. Does anyone know any that explain the configuration process?

Regards

AMPL Google Group

unread,
May 6, 2021, 11:40:35 AM5/6/21
to AMPL Modeling Language
For VIM, did you check the installation instructions at https://github.com/dpo/ampl-mode/blob/master/vim/INSTALL? For ATOM I guess you saw https://atom.io/packages/language-ampl-syntax and https://github.com/m-paolino/atom-package-language-ampl-syntax, where there are installation instructions but it's unclear how to download the package; perhaps use https://github.com/m-paolino/atom-package-language-ampl-syntax/releases.


--
Robert Fourer
am...@googlegroups.com
{#HS:1505050720-104119#}

J C

unread,
May 8, 2021, 3:57:53 PM5/8/21
to AMPL-group
Hello Robert,

Thank you for your response.

Yes, I took a look those sites. In the VIM case, the instructions are understandable.
Install VIM
Download ampl-mode for VIM.
Copy and paste the ampl.vim in the syntax file inside VIM was installed 
Finally copy 
augroup filetypedetect
au BufNewFile,BufRead *.mod setf ampl
au BufNewFile,BufRead *.dat setf ampl
au BufNewFile,BufRead *.ampl setf ampl
augroup END

In the filetype.vim. I paste it to the end of the existing code in the file.

I don't know if the .mod .dat or .run files must be open with VIM editor. However I opened with VIM but it does not work.

In the ATOM case, I updated and installed the ampl language syntax, but it does not work.

I think that stable editors for AMPL in dark mode are not developed yet.

Regards


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ampl/reply-77152-1505050720-4371439026-1620315632-710855073%40helpscout.net.

Mikhail

unread,
May 9, 2021, 12:41:22 AM5/9/21
to AMPL Modeling Language
Hello,
You can use Visual Studio Code dark themes. An extension for the AMPL syntax can be downloaded directly from VS Code::
2.png 
In the program settings, you must specify the path to ampl.exe on the your computer. 
1.PNG
After that you will get a good editor for AMPL. It has a nice extension for AMPL syntax (for * .mod, * .run, * .dat files).
3.PNG
The application has a large set of handy coding tools and many color schemes that can be switched using quick buttons.

суббота, 8 мая 2021 г. в 22:57:53 UTC+3, ingl...@gmail.com:

Davi Doro

unread,
May 9, 2021, 11:21:52 AM5/9/21
to AMPL Modeling Language
You might want to take a look at pifop.com, a web IDE for AMPL which requires no setup (disclaimer: I'm the developer that IDE). This guide will help you to get started. Here's a dark theme screenshot:

Screenshot_20210509_120722.png

Best regards,
Davi Doro

J C

unread,
May 11, 2021, 10:03:46 PM5/11/21
to AMPL-group
Interesting!

Thanks to all.

Regards

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages