Hi,
I have a text file with "\n" at the end of each and every line and can replace "\n" with " " manually, no problem.
I recorded a macro from that, but when I run it on selected text, it says it can't find any "\n" in the text. Which is soo wrong, because manually replacing it works flawlessly on the same selection.
Any ideas what might be wrong?
Hello,
Developer Sergey Chikuyonok recently released Zen Coding, a plugin for many popular editors (Aptana, Espresso, TextMate, GEdit, etc.) that provides advanced HTML generation.
The gist of it is that you write a line like "div#container>ul>li*5", and get HTML code like this:
<div id="container">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
Just thought I would share a macro I put together that cleans up trailing white space. It will be applied to the current selection if there is one, otherwise it will apply itself to the entire document.
Also, for anyone else trying to modify the current selection, there are a couple of handy methods in this macro. They handle extracting the relevant text and maintaining the current selection, which is the tricky part.
The methods in there are:
// Applies the given callback to the currently selected text
function applyToSelection ( expand, callback )
Hi, I wrote macro for duplicate line with iteration.
I've looked through the information in the help documentation on UDLs and the udl language, and poked a bit at koext and luddite. I figured I would start with something really really simple before I jumped into working on a UDL for something more complex, so I thought I would try something fairly simple like some of the basics of Transact-SQL. (And yes, I know that Komodo has SQL already... I just wanted something simple I could start with.)
Hi,
I have no experience with macros in Komodo and would like a makro to replace all " with \" within a selected text. The code looks like this:
// Macro recorded on: Sun Nov 15 2009 22:24:08 GMT+0100
komodo.assertMacroVersion(2);
if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); }
Find_ReplaceAllInMacro(window, 1, '"', '\\"', true, 0, 0, false, false);
But when I run the macro it does not work, nothing happens!?????
Thanks
Thomas
I've a strange problem with Komodo 5.2.2 inside extensions and macros.
The following code verifies if the clipboard contains HTML, when executed from Firefox (3.5.x) and Thunderbid (2.x and 3.0b4) it works like expected but when executed from Komodo it returns always false.
Under Komodo for Linux (32/64bit) and Windows it works fine under OSX Snow Leopard doesn't work.
Any idea?
To execute the snippet from Firefox or Thunderbid you can copy directly on Error Console Evaluate input box (be sure to put all in one single line)
Guys,
i'm writing a macro which needs open a file from file name. i used following code:
var project = ko.projects.manager.currentProject;
var part = ko.projects.findPart('file',module_file_name,'*', project);and it works for sometimes, but when i deleted project file and created new project (for the same file) it doesn't work anymore. any idea? i can see my file in projects pane and also its accessible via "Go to file".
otherwise i have plan to use ko.run.runCommand("grep ...."), harder but at least bullet proof.
tnx