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.
Related
Does anyone know of an Ace editor API that enables adding or removing breakpoints by clicking the gutter in the editor window? I spent more time than I care to admit looking for this functionality in the API reference, source code, forums, blogs, etc. and the best information I found so far is this answer from May 2012. It's a good starting point, but the breakpoints don't move when new lines are inserted in the code above them. I find it hard to believe that Ace doesn't include this in the standard feature set by now, as it's something we've come to expect in any decent code editor and the Cloud9 environment supports it.
There is no API provided by Ace for this. Here's the implementation used by Cloud9 https://github.com/c9/c9.ide.run.debug/blob/master/breakpoints.js#L727.
Most likely it is kept in Cloud9 plugin instead of Ace because it depends on the format in which breakpoints are stored, which might be different for different ides.
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.
This question already has answers here:
Autocompletion in Vim
(7 answers)
Closed 9 years ago.
Is there an autocomplete feature for Vi? ctrlp looks for keywords already used in the document. But suppose I want a.funcname to automatically show members of object a. Is it possible with Vi?
YouCompleteMe. It’s a plugin that offers extremely fast, fully syntax-aware auto-completion. It furthermore shows code errors on the fly (by putting a marker inside the margin next to the offending line).
So far, C++, C# and Python are natively supported. However, the plugin has an easily accessible API to add support for more languages.
There are other plugins but with the exception of Jedi (for Python only) nothing comes even close to working properly.
Take a look at supertab: http://www.vim.org/scripts/script.php?script_id=1643
I realise this isn't quite answering your question, but have you looked at running vi within an IDE ?
viPlugin works with Eclipse and is a pretty good vi emulation. Since it runs within Eclipse you get all the code completion that Eclipse provides. Eclipse isn't just for Java, btw. It works with a variety of languages and may well cater for what you need.
This is the direction I took when I reluctantly realised that vi by itself wasn't providing as much help as I needed when developing, but I was reluctant to give up the power of the editor.
I use NetBeans with the jVi plugin. It gives me the editing power of vi with the intelligent auto-completion features of NetBeans.
It depends on your language. For c++, for example, there is omnicppcomplete.
Maybe this article will help, I haven't tried it to be honest but it looks suitable.
I'm running on an Ubuntu and I hope it doesn't matter. Either than the preview it's a great latex editor
Considering the Texlipse man page mentions building and previewing, I do not think it can make a real-time preview, especially when the previewing relies on external tool.
But you could associate that Texlipse editor with other tools able to read the same LaTeX definition file and make a real time preview, like in this question:
Real-Time LaTeX
I think you're looking for the "Previewing" section on this manual page. When I glanced over it though, it didn't look like there is necessarily a way to do a live preview. It is an open source project, so if you really need to scratch that itch there's a way. :)
I know of etexteditor and vim/emacs.
Are there any other windows editors which have textmate-like snippets support (eg. you write trigger word, press tab, it changes to something, you press tab again, and it changes to first stop, you can then enter something there and it will change on several other places according to snippet defined) ?
I know it's a little weird explanation, but you probably know what I mean.
You can use the snipMate plugin for vim - I use it and it works great
InType could "someday" become what you're looking for, at least the alphas are promising. Sadly, a release version of InType is still far from being ready (see blog and forums).
Update: Currently, I'm using Sublime Text, another great editor: fully Python-scriptable and snippets support.
Redcar, written in Ruby, was just released, but it's not polished by any means.
Apart from that, I don't know of any.
jEdit will do something similar if you use the SuperAbbrevs plugin.
Visual Studio will do this, but it's nowhere near as nice as textmate / e.
I don't use windows but whilst searching for a alternative for linux I came across e-texteditor.
You can look into using an application independent of your IDE, to expand snippets.
I have a lorem ipsum snippet; one that contains my URL, my email, and so on, but you could also make snippets that contain code.
Applications: Textexpander for Mac, Typinator for Mac, Texter for Windows (no experience with the last one, so don't know if it's any good)
Komodo Edit and Komodo IDE both support this, although TextMate is arguably a bit more refined and polished in this area. Komodo Edit is free, however, and compares very favorably against the likes of InType and E for Windows.
http://www.openkomodo.com/
Visual Studio 2015 since Update 2 RC
Visual Studio now supports consuming TextMate snippets with
IntelliSense completion by placing tmSnippet files into a snippet
folder.
https://t.co/kmG52wkOXe
Visual Studio Code
Another addition to the yo code generator is the option to add
TextMate Snippets (.tmSnippets) to VS Code
http://blogs.msdn.com/b/user_ed/archive/2015/12/12/visual-studio-code-new-feature-yo-code-generator-textmate-snippets.aspx