APMonitor Model Syntax Highlighting
Main.SyntaxHighlighting History
Hide minor edits - Show changes to output
Deleted lines 84-102:
----
(:html:)
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)
Added lines 12-15:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/DIOiKU16KSM" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
(:htmlend:)
Changed line 5 from:
Syntax highlighting can improve the readability of the APM files. Syntax highlighting is supported in a number of text editor environments. Notepad++ and gEdit installation instructions are listed below.
to:
Syntax highlighting can improve the readability of the APM files. Syntax highlighting is supported in a number of text editor environments. Atom, gEdit, and Notepad++ installation instructions are listed below.
Changed lines 7-11 from:
Attach:download.jpg [[https://atom.io/packages/language-apmonitor | Install APM Language Definition (language-apmonitor)]] for Atom
Attach:download.jpg [[Attach:apmonitor.lang.zip | Download APM Language Definition (apmonitor.lang)]] for gedit
Attach:download.jpg [[Attach:apm_syntax.zip|APM Syntax Highlighting Notepad++ (apm_syntax.zip), Unzip before install]]
Attach:
Attach:
to:
Attach:download.jpg [[https://atom.io/packages/language-apmonitor | Atom Language Definition (language-apmonitor)]]
Attach:download.jpg [[Attach:apmonitor.lang.zip | gEdit Language Definition (apmonitor.lang)]]
Attach:download.jpg [[Attach:apm_syntax.zip| Notepad++ language definition (apm_syntax.zip)]]
Attach:download.jpg [[Attach:apmonitor.lang.zip | gEdit Language Definition (apmonitor.lang)]]
Attach:download.jpg [[Attach:apm_syntax.zip| Notepad++ language definition (apm_syntax.zip)]]
Changed lines 7-8 from:
Attach:download.jpg [[https://atom.io/packages/language-apmonitor
| Install APM Language Definition (language-apmonitor)]] for Atom
to:
Attach:download.jpg [[https://atom.io/packages/language-apmonitor | Install APM Language Definition (language-apmonitor)]] for Atom
Added lines 6-12:
Attach:download.jpg [[https://atom.io/packages/language-apmonitor
| Install APM Language Definition (language-apmonitor)]] for Atom
Attach:download.jpg [[Attach:apmonitor.lang.zip | Download APM Language Definition (apmonitor.lang)]] for gedit
Attach:download.jpg [[Attach:apm_syntax.zip|APM Syntax Highlighting Notepad++ (apm_syntax.zip), Unzip before install]]
Changed line 64 from:
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file. Follow the instructions at https://live.gnome.org/Gedit/NewLanguage to put the file where it needs to go and to enable automatic language detection and syntax highlighting.
to:
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file. Follow the instructions at https://help.ubuntu.com/community/gedit#Syntax_Highlighting to put the file where it needs to go and to enable automatic language detection and syntax highlighting.
Added lines 7-32:
!! Notepad++ (Windows)
Notepad++ is a text editor that supports APMonitor file syntax highlighting. The add-in configuration is simply an XML file. To add syntax highlighting to, follow the following procedure:
* Download and install [[https://notepad-plus-plus.org | Notepad++ (https://notepad-plus-plus.org)]]
->Attach:notepad_plus_plus.png
* Download and unzip the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
->Attach:apm_syntax.png
* Open Notepad++ and Select "Language"..."Define Your Language"
->Attach:notepad_config.png
* Select "Import" and browse to the apmonitor.xml file that is in the unzipped apm_syntax folder.
->Attach:notepad_import.png
* Right click an APM file and select "Open With"..."Choose default program...". If Notepad++ doesn't appear as one of the options, browse to ''C:\Program Files (x86)\Notepad++'' and select ''notepad++.exe''. When you open an APM file in the future, the model file will have syntax highlighting in Notepad++.
-> Attach:apm_syntax_highlighting.png
----
Notepad++ is a text editor that supports APMonitor file syntax highlighting. The add-in configuration is simply an XML file. To add syntax highlighting to, follow the following procedure:
* Download and install [[https://notepad-plus-plus.org | Notepad++ (https://notepad-plus-plus.org)]]
->Attach:notepad_plus_plus.png
* Download and unzip the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
->Attach:apm_syntax.png
* Open Notepad++ and Select "Language"..."Define Your Language"
->Attach:notepad_config.png
* Select "Import" and browse to the apmonitor.xml file that is in the unzipped apm_syntax folder.
->Attach:notepad_import.png
* Right click an APM file and select "Open With"..."Choose default program...". If Notepad++ doesn't appear as one of the options, browse to ''C:\Program Files (x86)\Notepad++'' and select ''notepad++.exe''. When you open an APM file in the future, the model file will have syntax highlighting in Notepad++.
-> Attach:apm_syntax_highlighting.png
----
Deleted lines 74-99:
----
!! Notepad++ (Windows)
Notepad++ is another text editor that supports APMonitor file syntax highlighting. The add-in configuration is simply an XML file. To add syntax highlighting to, follow the following procedure:
* Download and install [[https://notepad-plus-plus.org | Notepad++ (https://notepad-plus-plus.org)]]
->Attach:notepad_plus_plus.png
* Download and unzip the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
->Attach:apm_syntax.png
* Open Notepad++ and Select "Language"..."Define Your Language"
->Attach:notepad_config.png
* Select "Import" and browse to the apmonitor.xml file that is in the unzipped apm_syntax folder.
->Attach:notepad_import.png
* Right click an APM file and select "Open With"..."Choose default program...". If Notepad++ doesn't appear as one of the options, browse to ''C:\Program Files (x86)\Notepad++'' and select ''notepad++.exe''. When you open an APM file in the future, the model file will have syntax highlighting in Notepad++.
-> Attach:apm_syntax_highlighting.png
Changed lines 45-46 from:
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file, and place it in the language specs location (possibly similar to Windows path)
# We haven't looked into how to install the language definition file in MacOS. If you do this, please add some comments at the bottom of the page.
# We haven't looked into how to install the language definition file in MacOS
to:
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file, and place it in the language specs location (/Applications/gedit.app/Contents/Resources/share/gtksourceview-2.0/language-specs)
# If you havenβt installed gedit in your Applications folder, you should substitute /Applications for your directory.
# Restart gedit
# Thanks to Ben Feinberg for these instructions.
# If you havenβt installed gedit in your Applications folder, you should substitute /Applications for your directory.
# Restart gedit
# Thanks to Ben Feinberg for these instructions.
Changed line 26 from:
# Download the apmonitor.lang file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
to:
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
Changed lines 38-39 from:
# Download the apmonitor.lang file. Follow the instructions at https://live.gnome.org/Gedit/NewLanguage to put the file where it needs to go and to enable automatic language detection and syntax highlighting.
to:
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file. Follow the instructions at https://live.gnome.org/Gedit/NewLanguage to put the file where it needs to go and to enable automatic language detection and syntax highlighting.
Changed lines 44-45 from:
# gedit is available for download as a mac osx package (https://projects.gnome.org/gedit/), but we haven't looked into how to install the language definition file on a mac.
# If you do this, please add some comments at the bottom of the page.
#
to:
# Install gedit
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file, and place it in the language specs location (possibly similar to Windows path)
# We haven't looked into how to install the language definition file in MacOS. If you do this, please add some comments at the bottom of the page.
# Download the [[Attach:apmonitor.lang.zip | apmonitor.lang]] file, and place it in the language specs location (possibly similar to Windows path)
# We haven't looked into how to install the language definition file in MacOS. If you do this, please add some comments at the bottom of the page.
Changed line 71 from:
Attach:apm_syntax_highlighting.png
to:
-> Attach:apm_syntax_highlighting.png
Changed line 71 from:
to:
Attach:apm_syntax_highlighting.png
Added lines 11-12:
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment. There are also other text editors that support gtksourceview language definition files, but gedit is a nice simple, stable one.
Changed line 15 from:
to:
If using Linux, gedit should already be installed as the default text editor on most distributions. If it's not installed, download and install using your package manager. If using Windows or MacOS, download gedit from the following location:
Changed lines 23-24 from:
to:
** On 32-bit Windows this is C:\Program Files\gedit\share\gtksourceview-2.0\language-specs
** On 64-bit Windows this is C:\Program Files (x86)\gedit\share\gtksourceview-2.0\language-specs
** On 64-bit Windows this is C:\Program Files (x86)\gedit\share\gtksourceview-2.0\language-specs
Changed line 43 from:
to:
!! Notepad++ (Windows)
Changed line 7 from:
to:
!! gEdit (Windows, MacOS, Linux)
Changed lines 9-10 from:
to:
Attach:download.jpg [[Attach:apmonitor.lang.zip | Download APM Language Definition (apmonitor.lang)]] for gedit
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment. There are also other text editors that support gtksourceview language definition files, but gedit is a nice simple, stable one. If using Linux, gedit should already be installed as the default text editor on most distributions. If it's not installed, download and install using your package manager. If using Windows or MacOS, download gedit from the following location:
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment. There are also other text editors that support gtksourceview language definition files, but gedit is a nice simple, stable one. If using Linux, gedit should already be installed as the default text editor on most distributions. If it's not installed, download and install using your package manager. If using Windows or MacOS, download gedit from the following location:
Deleted lines 39-40:
I believe there are also other text editors out there that support gtksourceview language definition files, but gedit seems to be a nice simple, stable one.
Changed lines 9-10 from:
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment.
to:
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment. If using Linux, gedit should already be installed as the default text editor on most distributions. If it's not installed, download and install using your package manager. If using Windows or MacOS, download gedit from the following location:
Changed lines 15-42 from:
to:
----
'''Windows'''
# Install gedit
# Download the apmonitor.lang file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
## On 32-bit Windows this is C:\Program Files\gedit\share\gtksourceview-2.0\language-specs
## On 64-bit Windows this is C:\Program Files (x86)\gedit\share\gtksourceview-2.0\language-specs
# gedit should now automatically detect the language and do syntax highlighting for any file ending in .apm. To turn it on manually, go to View >> Highlight Mode >> Scripts >> APMonitor.
----
'''Linux'''
# gedit should already be installed as the default text editor on most distributions. If it's not installed, download and install using your package manager, or from https://projects.gnome.org/gedit/
# Download the apmonitor.lang file. Follow the instructions at https://live.gnome.org/Gedit/NewLanguage to put the file where it needs to go and to enable automatic language detection and syntax highlighting.
----
'''MacOS'''
# gedit is available for download as a mac osx package (https://projects.gnome.org/gedit/), but we haven't looked into how to install the language definition file on a mac.
# If you do this, please add some comments at the bottom of the page.
I believe there are also other text editors out there that support gtksourceview language definition files, but gedit seems to be a nice simple, stable one.
----
'''Windows'''
# Install gedit
# Download the apmonitor.lang file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
## On 32-bit Windows this is C:\Program Files\gedit\share\gtksourceview-2.0\language-specs
## On 64-bit Windows this is C:\Program Files (x86)\gedit\share\gtksourceview-2.0\language-specs
# gedit should now automatically detect the language and do syntax highlighting for any file ending in .apm. To turn it on manually, go to View >> Highlight Mode >> Scripts >> APMonitor.
----
'''Linux'''
# gedit should already be installed as the default text editor on most distributions. If it's not installed, download and install using your package manager, or from https://projects.gnome.org/gedit/
# Download the apmonitor.lang file. Follow the instructions at https://live.gnome.org/Gedit/NewLanguage to put the file where it needs to go and to enable automatic language detection and syntax highlighting.
----
'''MacOS'''
# gedit is available for download as a mac osx package (https://projects.gnome.org/gedit/), but we haven't looked into how to install the language definition file on a mac.
# If you do this, please add some comments at the bottom of the page.
I believe there are also other text editors out there that support gtksourceview language definition files, but gedit seems to be a nice simple, stable one.
----
Changed lines 65-84 from:
->Attach:apm_syntax_highlighting.png
to:
->Attach:apm_syntax_highlighting.png
----
(:html:)
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)
----
(:html:)
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)
Changed lines 5-18 from:
Syntax highlighting can improve the readability of the APM files. Notepad++ is one text editor that supports APMonitor file syntax highlighting as an add-in configuration as an XML file. To add syntax highlighting to, follow the following procedure:
to:
Syntax highlighting can improve the readability of the APM files. Syntax highlighting is supported in a number of text editor environments. Notepad++ and gEdit installation instructions are listed below.
!!!! gEdit (Windows, MacOS, Linux)
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment.
* Download and install [[https://projects.gnome.org/gedit/ | gedit (https://projects.gnome.org/gedit)]]
->Attach:gedit1.png
!!!! Notepad++ (Windows)
Notepad++ is another text editor that supports APMonitor file syntax highlighting. The add-in configuration is simply an XML file. To add syntax highlighting to, follow the following procedure:
!!!! gEdit (Windows, MacOS, Linux)
The text editor gedit is available on Windows, MacOS, and Linux. It is released under the GNU General Public License (GPL) and is the official text editor of the GNOME desktop environment.
* Download and install [[https://projects.gnome.org/gedit/ | gedit (https://projects.gnome.org/gedit)]]
->Attach:gedit1.png
!!!! Notepad++ (Windows)
Notepad++ is another text editor that supports APMonitor file syntax highlighting. The add-in configuration is simply an XML file. To add syntax highlighting to, follow the following procedure:
Changed line 1 from:
(:title APMonitor Syntax Highlighting:)
to:
(:title APMonitor Model Syntax Highlighting:)
Changed lines 23-25 from:
* When you open an APM file, the model file will have syntax highlighting.
->Attach:apm_syntax_highlighting.png
->Attach:apm_syntax_highlighting.png
to:
* Right click an APM file and select "Open With"..."Choose default program...". If Notepad++ doesn't appear as one of the options, browse to ''C:\Program Files (x86)\Notepad++'' and select ''notepad++.exe''. When you open an APM file in the future, the model file will have syntax highlighting in Notepad++.
->Attach:apm_syntax_highlighting.png
->Attach:apm_syntax_highlighting.png
Changed lines 7-8 from:
to:
* Download and install [[https://notepad-plus-plus.org | Notepad++ (https://notepad-plus-plus.org)]]
Changed lines 11-12 from:
to:
* Download and unzip the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
Changed lines 15-17 from:
->Attach:notepad_config.png
to:
* Open Notepad++ and Select "Language"..."Define Your Language"
->Attach:notepad_config.png
* Select "Import" and browse to the apmonitor.xml file that is in the unzipped apm_syntax folder.
->Attach:notepad_import.png
* When you open an APM file, the model file will have syntax highlighting.
->Attach:apm_syntax_highlighting.png
->Attach:notepad_config.png
* Select "Import" and browse to the apmonitor.xml file that is in the unzipped apm_syntax folder.
->Attach:notepad_import.png
* When you open an APM file, the model file will have syntax highlighting.
->Attach:apm_syntax_highlighting.png
Added lines 9-10:
->Attach:notepad_plus_plus.png
Added lines 12-13:
->Attach:apm_syntax.png
Changed lines 12-13 from:
Attach:notepad_config.png
to:
->Attach:notepad_config.png
Changed lines 7-12 from:
# Download the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
to:
# Download and install [[https://notepad-plus-plus.org | Notepad++ (https://notepad-plus-plus.org)]]
# Download and unzip the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
# Open Notepad++ and Select "Language"..."Define Your Language"
Attach:notepad_config.png
# Download and unzip the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
# Open Notepad++ and Select "Language"..."Define Your Language"
Attach:notepad_config.png
Added lines 1-7:
(:title APMonitor Syntax Highlighting:)
(:keywords nonlinear, model, predictive control, APMonitor, differential, algebraic, modeling language, Notepad++, style:)
(:description Download APMonitor syntax highlighting to edit model files.:)
Syntax highlighting can improve the readability of the APM files. Notepad++ is one text editor that supports APMonitor file syntax highlighting as an add-in configuration as an XML file. To add syntax highlighting to, follow the following procedure:
# Download the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]
(:keywords nonlinear, model, predictive control, APMonitor, differential, algebraic, modeling language, Notepad++, style:)
(:description Download APMonitor syntax highlighting to edit model files.:)
Syntax highlighting can improve the readability of the APM files. Notepad++ is one text editor that supports APMonitor file syntax highlighting as an add-in configuration as an XML file. To add syntax highlighting to, follow the following procedure:
# Download the [[Attach:apm_syntax.zip|APM Syntax Highlighting Configuration File (apm_syntax.zip)]]