NOTEPAD PLUS PLUS SYNTAX HIGHLIGHT FOR WINDOWS

1,218 views
Skip to first unread message

Nikolai Ortiz

unread,
Apr 15, 2016, 8:41:18 AM4/15/16
to FDS and Smokeview Discussions
Hi,
I've been using notepad++ (https://notepad-plus-plus.org/) a free text editor to write my FDS codes and highlight the syntax...

I see that the blender plugin team (https://github.com/firetools/blenderfds/tree/master/syntax-highlight/notepad-plus-plus) has written his own but I tried it and didn't work.
So I left here my own version if some one wants to try.
There are some missing commands of EVAC.

I've attached a screen capture to show how it looks like.


FDS-EVAC-04-15-16.xml
Auto Generated Inline Image 1

Emanuele Gissi

unread,
Apr 16, 2016, 3:34:49 AM4/16/16
to FDS and Smokeview Discussions
Hi Nikolai,
that's a great news!

The old Notepad++ plugin is indeed broken, and nobody was taking care of it as most of us are Linux users.
If you wish, you can become the new maintainer.

I suggest following on the discussion on the specific blenderfds discussion group at:

Best regards,
Emanuele Gissi

Brian L

unread,
Apr 21, 2016, 6:13:15 PM4/21/16
to FDS and Smokeview Discussions
Notepad2 is also a great free program that allows for this functionality.

Manuel

unread,
Apr 25, 2016, 5:23:34 PM4/25/16
to FDS and Smokeview Discussions
Hello Emanuele,

Today I sent a pull request with a updated version of my syntax highlighter for Notepad++. I am using the syntax highlighter frequently and it's working fine.

Best regards Manuel

Emanuele Gissi

unread,
Apr 26, 2016, 2:32:03 AM4/26/16
to FDS and Smokeview Discussions
Thank you very much Manuel! I merged your patches and moved the readme content to the relevant wiki page at:

Is it ok for you?
What about adding a nice screenshot?

If you wish to become an "official" contributor of the project you are warmly welcome. Just send me a note.

Best regards,
Emanuele Gissi

Nikolai Ortiz

unread,
May 2, 2016, 10:02:01 AM5/2/16
to FDS and Smokeview Discussions
Hi,
As I understand,  Manuel did the job
:)
-----
I also do this shortcuts for the Run using the run menu of the Notepad++,
I don't know if this was added before to the blender plugging but could be a good help also.

The guide to added is:

Whit the Notepad++ closed:
  • Go to this location: C:\Users\YOUR_USER_HERE\AppData\Roaming\Notepad++
  • replace or modify the archive:  shortcuts.xml
The commands that I added:
  • The first one is to launch a SMV of the current fds file open in Notepad ++
  • The second one is to launch a MPI FDS for 4 processors in the local machine
  • the 3th the same but for 5 processors
  • the 4th, the same but for 6 processors
  • the 5th it's juts a FDS launch for the current fds file open in the Notepad ++
  • the  6th,it launches a 6 processors MPI FDS and when it's finished shutdown the PC.
  • The 7th, it launches a FDS and when it's finished shutdown the PC
The code for the file  shortcuts.xml is:

 <Command name="smokeview" Ctrl="no" Alt="yes" Shift="no" Key="119">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; smokeview $(NAME_PART).smv</Command>
 
<Command name="mpi4" Ctrl="yes" Alt="yes" Shift="no" Key="118">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; mpiexec -n 4 fds $(FILE_NAME)</Command>
 
<Command name="mpi5" Ctrl="yes" Alt="yes" Shift="no" Key="119">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; mpiexec -n 5 fds $(FILE_NAME)</Command>
 
<Command name="mpi6" Ctrl="yes" Alt="yes" Shift="no" Key="120">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; mpiexec -n 6 fds $(FILE_NAME)</Command>
 
<Command name="fds" Ctrl="yes" Alt="no" Shift="no" Key="119">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; fds $(FILE_NAME)</Command>
 
<Command name="mpioff" Ctrl="yes" Alt="no" Shift="yes" Key="118">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; mpiexec -n 6 fds $(FILE_NAME) &amp; shutdown /s /f</Command>
 
<Command name="runfdsoff" Ctrl="no" Alt="yes" Shift="yes" Key="118">cmd /K cd /d $(CURRENT_DIRECTORY) &amp;&amp; fds $(FILE_NAME) &amp; shutdown /s/f</Command>




And that's all.

I attach the file and a screenshot




Regards!!

Nikolai
shortcuts.xml
Auto Generated Inline Image 1

Christian Kraft

unread,
Mar 19, 2017, 3:27:26 PM3/19/17
to FDS and Smokeview Discussions
Hello Manuel,

would you update the syntax highlight file again? I  get an import error for notepad 7.3.3 with the actual file.

Thanks a lot
Christian

Salah Benkorichi

unread,
Mar 19, 2017, 5:14:15 PM3/19/17
to fds...@googlegroups.com
Christian,

I'm using the latest update 7.3.3 and it's working. You need to redownload or just copy that syntax and registered under a new file on your system, in notepade, go to language, then select define your language, choose import and select the file I'm attaching here. You need to close it and reopent it. Test if the sentex work or not, if it's not, under language, check if FDS-inputfile is selected or not.

Regards,
Salah

--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+unsubscribe@googlegroups.com.
To post to this group, send email to fds...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fds-smv/cf7e6bab-70e4-4bee-aaba-c334bf82feee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Create FDSEvac_Npp_v2_3.xml

Randy McDermott

unread,
Mar 19, 2017, 10:12:53 PM3/19/17
to FDS and Smokeview Discussions
In case anyone is interested in Sublime Text for FDS, I'm keeping this syntax highlighting current with latest FDS:




Reply all
Reply to author
Forward
0 new messages