Select the Other group and push the plus sign at the right of the screen to create a new command. I added my command to the Other collection. Open the command window by going to the menu tools > Handle Commands > Show Commands Window. To be able to do this, we need to add a command. Next step is to integrate this with smultron. Tidy –input-xml true –output-xml true –indent yes –wrap 100 -m pom.xml I managed to format my files in a reasonable way using the following command This is the same page to find information about everything you can do with tidy. If it is not installed you can find more information on this page. I am not sure if this utility is installed the moment you install the developer tools. The mac comes standard with a utility called Tidy. But smultron does have an easy way of calling command line applications. Than the final requirement, the xml formatting. To bad there is no subversion integration, but for my purpose the svn command line application is good enough. We can open a file using that editor from the command line. Now we have a fast text editor with code highlighting and lot’s of other functionality. Then that file will be opened in smultron It is more useful if you provide a filename at the command line like the following command. Test if everything went well by typing smultron at the command line. You have to enter your root password twice, which is explained why (for the application and the man pages). You can find the download here:Īfter unzipping and moving, open de application and go to the mentioned menu item in the help menu. Which is as easy as going to the help menu and choosing the menu item Install Command-Line Utility. The second step is installing the command line. Read on to find out the small steps I had to take.Īctually installing has two steps, the first step is downloading the application and moving it to the desired location. I did have to integrate an xml formatter to get three of the points out of the four mentioned within Smultron. My conclusion, TextMate is better but not worth the 50 euros when you compare them. Therefore I started looking for something else. that is to much for me for just a text editor. Today I decided to by TextMate, than I saw it was almost 50 euros. Possibility to startup TextMate from the command line.I heard about TextMate and got curious, for me there were a few reasons why I liked TextMate a lot. Since I am doing a lot of java development, I have a lot of property files as well as xml files that I need to edit. I am using it mainly for editing files without opening a full blown editor like IntelliJ or DashCode. There were a few reasons why I liked it a lot. I was using TextMate as an external text editor. This is a short post about again another tool for the mac.
0 Comments
Leave a Reply. |