Sublime Text 2 (or other) syntax highlighter for NetLogo - editor

Does anyone know of a syntax highlighter, ideally for Sublime Text 2, for NetLogo? I'd rather not write my code directly in NetLogo and prefer to use editors I'm more used to, but I can't seem to find a syntax highlighter for it.

There is the NetLogo syntax on PackageControl.io.
Also, as you see can see on the NetLogo resources page, there is one for VIM and one for BBEdit. There is also a plugin for Pygments.
If you ever want to try rolling your own or improve another, this NetLogo wiki page might be useful.

There is one floating around for notepad++.
I downloaded it a while ago, but I can't seem to find the link for you right now. Someone posted it in yahoo groups, and it is a user defined language you have to import into Notepad ++. I wish I had the link for you, I'm sorry I can't be of more help.

Related

How to let vim do syntax highlight right for flutter?

Some background: I am using VSCode for coding in flutter. But when I open many workspaces, it ate all my free RAM quickly (Macbookpro 8GB). (IntelliJ is even worse.) Sometimes, I just need to check other workspaces' Code etc.. So The best option is to use vim for this purpose.
I have installed dart-vim-plugin, but the syntax highlighting is not really correct for flutter, for example, BuildContext, Scaffold, AppBar etc.. all the class types are pure white color. To minimize the RAM usage, I just don't want any analysis server, auto completion etc.. I just want the editor has a correct syntax highlighting so that I can easily check the code. Is that doable?
Thank you very much for your help.
PS: I just want to use an editor which only does syntax highlight. I really don't have much free RAM. Normally, there are only 600MB left and I don't want to use them all.
Even if I am new to vim syntax highlight, since nobody provides an answer, I have to study how to do this by myself. I have created my own dart.vim and put it at ~/.vim/after/syntax/dart.vim. Note this is just an add-on for dart-vim-plugin, you still need to install it. Hopefully, this will help somebody some day.

How to have "Find in Files" results automatically expanded

Simple question, (Easy points!)
In Delphi 2010 (with updates 4 and 5) "Find in Files" shows the results with the tree closed for each file. I have to click on a plus-sign to open each file's results.
I know there's a way to configure the IDE to automatically show the results with all the trees open, but for some reason (fatigue on my part?) I'm unable to find where to set that option.
Tom
Edit on year later: I re-asked this question here: Auto-expanding the results of "Find in Files" int the Messages windows and got a good answer:
"[Use the] Group results by file" checkbox on the Find In Files dialog.
Somehow I'd overlooked that! I'm posting this edit so that other readers in the future find it here.
I couldn't find anything like what you are asking about, in the Options. Perhaps you confused that with something else, but maybe I overlooked the option (too).
Anyway, there's a keyboard shortcut, Ctrl+Shift+Numpad +, to automatically expand all the tree items in the Message box tree view (when it is focused). Similarly, Ctrl+Shift+Numpad - collapses them all.
Not directly answering your question; but I was often frustrated by this, until I found the excellent Grep Search that is included with GExperts
It includes an option to 'Expand all matches after searching'. It also fixes many other shortcomings with the Delphi 'Find in Files'. I highly recommend it.

How to print Smalltalk code from Pharo/Squeak?

What is the best way to print - syntax colored and well formatted - code from Pharo/Squeak on paper?
1) Is there a way to print directly from within Pharo/Squeak? (i use it on macosx)
2) Is there a way to export syntax colored, well formatted code from Pharo/Squak?
3) Are there external tools to color and format a filed out piece of code?
For the appendix in my master thesis I used the Pier CMS-to-LaTeX converter in the Pier-Documentation package. However, this plugin only takes class comments and method comments into consideration, it does not print the source code. Pier also provides a package ShoutPier for syntax highlighting of Smalltalk code, so I guess it would require little work to bring the two together. You can find the mentioned extension packages in http://source.lukas-renggli.ch/pieraddons.html.
Pharo browsers seem to use syntax highlighting.
What difficulty are you having reading Smalltalk code using the browsers and senders/implementors ?
Edit: Would something that produces UML give the overview you're looking for? The Dandelion website only shows downloads for old Squeak versions - I don't know if they would work with Pharo.
And perhaps this GSoC project "Generate UML diagrams from Smalltalk code for Pharo" suggests not.
Here's how I did it on my Mac, I think this should work on other platforms too.
Save your categories to a Monticello local folder on your disk -- see the Pharo manual on how to do this: http://book.pharo-project.org/book/PharoTools/Monticello/?_s=hdGOLc_FXsvVY1iR&_k=YYH-Ln8f5mtWZ8z2&_n&148
Browse to this folder, and unzip the .mcz file
You'll see all your code in snapshot/source.st file
You'll need to edit this a bit, to remove the ! characters for e.g., there might be a tool to do this?
-Eric.
There is webdoc project, which allows you navigating code in web browser:
http://ss3.gemstone.com/ss/webdoc.html
(and of course you can print code from your favorite web browser)..
1) Install shout from www.squeaksource.com
2) I don't know. May be you can customize shout.
3) In gnu-smalltalk you have a smalltalk mode for emacs. But I am not pretty sure to understand what you are looking for.

Online programming editor

For a school project i need to write or use a online programming editor. It is a part of a bigger project. I thought of a java application, php/html/javascript or flash.
I have a couple of things i could do:
Find a good working application and edit it so it works with the rest of the project
Find good parts for a editor and make it working my self (syntax highlighter, auto-indent, autocompletion, etc.)
Combination of those two
Does anybody know a good editor or have tips for this project or a editor?
Thanks for reading,
Leon
For the syntax highlighting and basic editing part, check out my recent question Textarea that can do syntax highlighting on the fly?
Solutions presented there:
CodeMirror
Bespin (Mozilla only, but great)
For the rest - autocompletion etc. - ... Check out the Wikipedia article Comparison of JavaScript-based source code editors
Interested to see what other suggestions come up.
Bespin comes to mind. Though it might be too bleeding edge, depending on how the rest of the project is built/meant to be used (but hey, programmers love bleeding edge).
If you decide to use PHP/HTML/CSS/JavaScript, see GeSHi for syntax highlighting.
I have a side project developed with ACE.
It connects to your server through SFTP and allows you to create new files,read and edit all from your browser with your file tree at sidebar.
Demo at TePe
Code at Github Repo
I found Cobalah Editor it's also built on CodeMirror but with some customization. There are some themes available we can set, increase or decrease font size.

simple search engine

I am trying to write program its like a simple search engine, in this program the user is supposed to enter a search keyword into an edit box and then he can click the search button, and the program is supposed to open a specific text file from the directory and find a matching word to that keyword in this text file. I am using Delphi 2007. thank you
Basically you need to find a string in another string. Take a look at this algorithm: http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm
If you are on a unix system, send a call to grep. If you are on a windows system, install grep for windows.
You might want to look at the source code for the open source project GExperts. It contains a text search engine (grep) that works very well.
I have written something similar in C# - Searcharoo.net - you can download the source code from there.
What might be more useful, though, are the articles that I wrote describing how it works... This description of how Version 1 might be of some use - although I'm probably biased since I wrote it (back in 2004).
Your question is pretty open so I'm not sure if this will help - particularly since I don't know Delphi and how different it is to C# - but hope it helps...

Resources