Main.SyntaxHighlighting History

Hide minor edits - Show changes to markup

April 30, 2013, at 11:01 AM by 128.187.97.18 -
Changed lines 45-46 from:
  1. Download the apmonitor.lang file, and place it in the language specs location (possibly similar to Windows path)
  2. 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.
to:
  1. Download the apmonitor.lang file, and place it in the language specs location (/Applications/gedit.app/Contents/Resources/share/gtksourceview-2.0/language-specs)
  2. If you havenít installed gedit in your Applications folder, you should substitute /Applications for your directory.
  3. Restart gedit
  4. Thanks to Ben Feinberg for these instructions.
March 20, 2013, at 06:20 AM by 69.169.188.188 -
Changed line 26 from:
  1. Download the apmonitor.lang file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
to:
  1. Download the apmonitor.lang file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
Changed lines 38-39 from:
  1. 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:
  1. 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.
Changed lines 44-45 from:
  1. gedit is available for download as a mac osx package (http://projects.gnome.org/gedit/), but we haven't looked into how to install the language definition file on a mac.
  2. If you do this, please add some comments at the bottom of the page.
to:
  1. Install gedit
  2. Download the apmonitor.lang file, and place it in the language specs location (possibly similar to Windows path)
  3. 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.
March 20, 2013, at 06:16 AM by 69.169.188.188 -
Changed line 71 from:
to:
March 20, 2013, at 06:15 AM by 69.169.188.188 -
Changed line 71 from:
to:
March 20, 2013, at 06:15 AM by 69.169.188.188 -
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:

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:

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:

March 20, 2013, at 06:13 AM by 69.169.188.188 -
Added lines 10-11:
March 20, 2013, at 06:08 AM by 69.169.188.188 -
Changed lines 23-24 from:
  1. On 32-bit Windows this is C:\Program Files\gedit\share\gtksourceview-2.0\language-specs
  2. On 64-bit Windows this is C:\Program Files (x86)\gedit\share\gtksourceview-2.0\language-specs
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
March 20, 2013, at 06:03 AM by 69.169.188.188 -
Added lines 26-27:
March 20, 2013, at 06:02 AM by 69.169.188.188 -
Changed line 43 from:

Notepad++ (Windows)

to:

Notepad++ (Windows)

March 20, 2013, at 06:02 AM by 69.169.188.188 -
Changed line 7 from:

gEdit (Windows, MacOS, Linux)

to:

gEdit (Windows, MacOS, Linux)

March 20, 2013, at 05:54 AM by 69.169.188.188 -
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. 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:

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. 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.

March 20, 2013, at 05:50 AM by 69.169.188.188 -
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

  1. Install gedit
  2. Download the apmonitor.lang file, and place it in <gedit install directory>\share\gtksourceview-2.0\language-specs
    1. On 32-bit Windows this is C:\Program Files\gedit\share\gtksourceview-2.0\language-specs
    2. On 64-bit Windows this is C:\Program Files (x86)\gedit\share\gtksourceview-2.0\language-specs
  3. 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

  1. 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 http://projects.gnome.org/gedit/
  2. 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

  1. gedit is available for download as a mac osx package (http://projects.gnome.org/gedit/), but we haven't looked into how to install the language definition file on a mac.
  2. 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:
to:

(: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 = 'http://' + 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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

(:htmlend:)

March 20, 2013, at 05:42 AM by 69.169.188.188 -
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 gedit (http://projects.gnome.org/gedit)

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:

January 09, 2013, at 11:53 PM by 69.169.188.188 -
Changed line 1 from:

(:title APMonitor Syntax Highlighting:)

to:

(:title APMonitor Model Syntax Highlighting:)

January 09, 2013, at 11:49 PM by 69.169.188.188 -
Changed lines 23-25 from:
  • When you open an APM file, the model file will have syntax highlighting.
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++.
January 09, 2013, at 11:41 PM by 69.169.188.188 -
Changed lines 7-8 from:
  1. Download and install Notepad++ (http://notepad-plus-plus.org)
to:
  • Download and install Notepad++ (http://notepad-plus-plus.org)
Changed lines 11-12 from:
to:
Changed lines 15-17 from:
  1. Open Notepad++ and Select "Language"..."Define Your Language"
to:
  • Open Notepad++ and Select "Language"..."Define Your Language"
  • Select "Import" and browse to the apmonitor.xml file that is in the unzipped apm_syntax folder.
  • When you open an APM file, the model file will have syntax highlighting.
January 09, 2013, at 11:26 PM by 69.169.188.188 -
Added lines 9-10:
Added lines 12-13:
January 09, 2013, at 11:23 PM by 69.169.188.188 -
Changed lines 12-13 from:
to:
January 09, 2013, at 11:21 PM by 69.169.188.188 -
Changed lines 7-12 from:
to:
  1. Download and install Notepad++ (http://notepad-plus-plus.org)
  2. Download and unzip the APM Syntax Highlighting Configuration File (apm_syntax.zip)
  3. Open Notepad++ and Select "Language"..."Define Your Language"
January 09, 2013, at 11:13 PM by 69.169.188.188 -
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:

  1. Download the APM Syntax Highlighting Configuration File (apm_syntax.zip)