7erra 629 Posted March 2, 2019 (edited) Hello my fellow mission editors! Since the Notepad++ Editor is so customizable why not customize it for ArmA? I.) SQF Syntax Highlighting and Auto Completion Obviously the most important improvement. Instructions can be found at the respective sites. II.) BIKI search Poseidon Tools already has it and Notepad++ can do it too: The instant jump to the BIKI (Bohemia Interacitve Wikipedia) with the selected command. Here are the steps to get it working: Go to "EDIT >> On Selection >> Change search engine" Select "Set your search engine here:" Paste the following into the blank field: https://community.bistudio.com/wiki/$(CURRENT_WORD) Close the dialog Now select a command and right click "Search on Internet" will take you to the command's BIKI site (Optional) Set a hotkey Go to "Settings >> Shortcut Mapper" Filter for "Search on Internet" Edit the entry by doubleclicking Select your preferred key/combination from the dropdown menu Press OK Close the overlay III.) Open latest log Since Notepad++ has a tail function you can use it to analyse you Arma log. NOTE: This is a very very basic approach which I put together with my non-existent batch skills and exceptional Google skills. Create a file anywhere on your computer (eg in the Notepad++ directory) Rename the file and the file extension to eg "LatestLog.bat" (w/o the quotation marks) Edit it with Notepad++ Paste the following lines into the file: FOR /f %%i IN ('dir "C:\Users\%USERNAME%\AppData\Local\Arma 3\*.rpt" /o:d /b') DO (set LAST=%%i) start notepad++ "C:\Users\%USERNAME%\AppData\Local\Arma 3\%LAST%" Save the file Go to "Run >> Run" or press F5 Press the 3 dots Locate your .bat file and press "Open" Save with custom name The function can now be found under the "Run" menu as the last entry IV.) Enable Tail "Tailing" a file will make it scroll to the last line automatically. This is especially useful for logs which get updated frequently. Enable/Disable the tail functionality by... Clicking the "👁️" in the hotbar Going to "View >> Monitoring (tail -f)" (Global setting) Going to "Settings >> Preferences >> MISC. >> File Status Auto-Detection" and checking the "Scroll to last line after update" option V.) Automatic File Updates Normally Notepad++ will ask you if you want to reload a file that has been edited externally. This can and will get annoying especially with logs. Make it automatic with the following steps: Go to "Settings >> Preferences >> MISC. >> File Status Auto-Detection" Check the "Enable" and "Update silently" option VI.) Plugins There are hundreds of plugins so here is a list of some that I personally found useful or interesting. Install Plugins: Before doing anything: Save unsaved files! Notepad++ will be restarted during the process Go to "Plugins >> Plugin Manager >> Show Plugin Manager" Select the "Available" tab Wait for the list to refresh (might take a minute or two) When selecting an entry the description will be displayed in the text field below the browser Check the boxes for plugins that you need and press "Install" After the download finished restart Notepad++ The plugin(s) can be found under the "Plugins" dropdown menu List of useful plugins: Don Rowlett Color Picker Does as the name says: It has a UI where you can set the desired color and converts it to different formats. The most useful output is the HTML format which is used in Structured Text. The RGB format sadly isn't the same as A3 (0-255 instead of 0-1). Quick Color Picker + Another color palet. But with additional functionalities: Select a color from your screen, edit/preview already written down colors MathPad A simple calculator. If you want to evaluate an expression without switching to another program. MultiClipboard Store your copy/paste history and access it with CTRL+SHIFT+V. Getting your PhD has never been easier. Falling Blocks Need some distraction from getting angry/sad at not working scripts? And more to follow. Feel free to share your own tips and tricks as well as thoughts and questions! 7erra Edited December 10, 2022 by 7erra removed armaholic link, changed dead link 5 5 Share this post Link to post Share on other sites
gc8 977 Posted March 2, 2019 Good stuff, thanks for sharing 7erra. Unfortunately my notepad++ is bit messed up as the syntax highlighter often fails when I'm editing arma files. I have thread about that in here is notepad++ working well for every one? Share this post Link to post Share on other sites
Larrow 2822 Posted March 2, 2019 3 hours ago, 7erra said: FOR /f %%i IN ('dir "C:\Users\%USERNAME%\AppData\Local\Arma 3\*.rpt" /o:-d /b') DO (set LAST=%%i goto stop) :stop start notepad++ "C:\Users\%USERNAME%\AppData\Local\Arma 3\%LAST%" FOR /f %%i IN ('dir "C:\Users\%USERNAME%\AppData\Local\Arma 3\*.rpt" /o:d /b') DO (set LAST=%%i) start notepad++ "C:\Users\%USERNAME%\AppData\Local\Arma 3\%LAST%" /o:d not /o:-d. You want the last file found to be the newest. No need for the goto and label, flow will automatically go to the next line. Share this post Link to post Share on other sites
7erra 629 Posted March 2, 2019 1 hour ago, gc8 said: Unfortunately my notepad++ is bit messed up as the syntax highlighter often fails when I'm editing arma files. I have thread about that in here is notepad++ working well for every one? Well up until now I was using Poseidon tools as my sqf editor. But I think I'll go back to Notepad++ bc Poseidon has this "Buy license" dialog that pops up after saving a certain amount of times. Otherwise it's working fine for me. From where did you download the highlighter? @Larrow Code adjusted, thanks 👍 Share this post Link to post Share on other sites
gc8 977 Posted March 3, 2019 12 hours ago, 7erra said: From where did you download the highlighter? Can't remember, maybe made it my self just took command list from somewhere. I uploaded the xml here if some one wants to take a look Share this post Link to post Share on other sites
gc8 977 Posted March 3, 2019 It's not the language definition that's buggy because I downloaded the lang def from 7erras post and still my notepad++ gets messy and I have restart it Share this post Link to post Share on other sites
7erra 629 Posted March 3, 2019 I'll continue the discussion on your post 😉 Share this post Link to post Share on other sites
nomadd 66 Posted March 3, 2019 Thanks for this 7erra, I use notepad++ and found this very helpful Share this post Link to post Share on other sites
Nuxes 11 Posted September 23, 2022 Links for SQF Syntax Highlighting and Auto Completion and dead, does anyone have them? On 3/2/2019 at 10:35 AM, 7erra said: I.) SQF Syntax Highlighting and Auto Completion Obviously the most important improvement. Instructions can be found at the respective sites. http://www.armaholic.com/page.php?id=8680 https://github.com/Sanjo/npp-sqf Does anyone have updated links? Share this post Link to post Share on other sites
Stormmy1950 42 Posted September 23, 2022 2 hours ago, Nuxes said: Links for SQF Syntax Highlighting and Auto Completion and dead, does anyone have them? Does anyone have updated links? On the last page there should be latest version of sqf auto completion and highlighting. 1 1 Share this post Link to post Share on other sites
Harzach 2517 Posted September 23, 2022 There's always GossamerSolid's version, which is being kept up-to-date by @Janez And the Armaholic link won't ever be fixed because Armaholic is gone. 1 Share this post Link to post Share on other sites