topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 4:25 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jussi Jumppanen [ switch to compact view ]

Pages: prev1 [2]
26
However, after reading some of the forum, it appears that Zeus has been (and may still be) using an older regular expression engine. Is this still true?
Zeus uses a unix/perl style of regular expression engine. Another user suggested the engine in Zeus is old, but I've never really understood what it is that makes an engine old or new?

Recently I wrote a C# project that made extensive use of the Microsoft C# regular expression object. All the regular expressions used in that project where written and tested in Zeus and they worked just fine in the C# regular expression object. 

27
I have one complaint about it. Revisions come infrequently with trivial or barely noticeable improvements and upgrade prices are way out of line with the meager improvements.
The Zeus 3.96 version has had free upgrades since 19 th Jan 2007: http://www.zeusedit....um/viewforum.php?f=6
As it stands, minor upgrades should be free to registered users.
They are ;)

28
Many editors allow you to define user tools, but they often invoke them by means other than a command shell.  If there's no command shell, there's (as I understand it) no access to STDIN/STDOUT and the redirection process,
Zeus runs its tools as a hidden process and captures the STDOUT/STDERR output of the tool to a tool window within the editor. But it does not hook in to the STDIN of the tool so there is no way for the user to talk to the tool from within Zeus.

To get STDIN working from within Zeus requires something like Tee: http://www.zeusedit....m/viewtopic.php?t=74

By contrast, consider TED Notepad.  It presumably uses a hidden command shell, because you can define STDIN/STDOUT filters as user tools.
Since TED Notepad hooks in to STDIN I assume that means you can type inside of TED Notepad and that input is sent to the tool. That is nice :Thmbsup:

(You can) mark a block of text, hit the hotkey for that tool, and have the transformed text over-write the existing block.  Very convenient.
It's possible run a tool from within a Zeus script and since scripts can be written in Python, Lua, JavaScript, VBScript, even Tcl, with a bit of scripting it is possible to do almost anything with the tool output.

The latest version of Zeus is a 10 Mb download - not that out of the way nowadays
Zeus itself is only about 800 kBytes but it ships with 19 other dlls that are about 6 megs in size. But of those 19 dlls only about 3 are essential and in fact reset can even be deleted.

but many competent editors are much smaller and presumably faster loading
Zeus starts in less than a second and it can open a 15 meg file in about 3 seconds. Normal files open in less than a second to load.

I'm sure one gets what one pays for, but it might be too much for me.  On the other hand, if I'd bought it first, maybe I wouldn't be on this quest.
Zeus costs nothing to try and the trial version is fully functional and runs for 45 days ;)

29
General Software Discussion / Re: Best Python IDE
« on: April 14, 2009, 07:18 PM »
The Zeus for Windows IDE is Python aware: http://www.zeusedit.com/python.html

It does syntax highlighting, smart indenting, code folding etc. etc. You can even write Zeus scripts in Python.

It is also possible to hook in the Python documentation so you can search and access the help from within the editor:

    http://www.zeusedit....um/viewtopic.php?t=8

Jussi Jumppanen
Author: Zeus for Windows IDE

30
I've just been looking at a few more Windows editors. Originally, I
 was looking for these features:
 
 Automatic back-ups
 Bookmarks
 Edit multiple files (tabbed interface?)

Zeus has all these feature: http://www.zeusedit.com

Ability to specify filters as external user tools (most seem  to unable to cope with redirection symbols)
I am not exactly sure what you mean by a redirection filter?

When the editor runs an external tool it will put in it's own hook to capture the output. If you redirect this output there will be nothing for the editor to capture.

In almost all the Windows editors I've seen, you have to use the mouse, or Shift-arrow keys, to mark text.

Zeus has several marking options including line, block, column, ragged or cua marking modes.

The marking can be done using just the keyboard, just the mouse or a combination of both.

If you press almost any other key, you lose the marked area and have to start again.

This is a Windows standard so I suspect that is why most windows editors do this. But in Zeus this is configurable.

Compare this with WordStar-style editors.

FWIW Zeus has a WordStar keyboard emulation mode.

True, I believe Boxer and TED Notepad both have limited work-arounds, but not as good.
If the Zeus WordStar emulation is broken then I would suggest reporting it as a bug to the Zeus forum:

   http://www.zeusedit.com/forum

Do Windows editors really have to be so bad?

Definitely not and I don't think all of them are ;)

Jussi Jumppanen
Author: Zeus for Windows IDE

31
In it's last days, didn't Mandrake resort to the donation ware approach? It didn't seem to work for them.

32
General Software Discussion / Re: PHP IDE recommendations
« on: February 24, 2008, 05:03 PM »
hard wrapping: it inserts actual \n to split the lines. That's what I need.

Just a thought. Since PHP is a bit like C in terms of syntax, maybe one of the c/c++ beautifiers will also work with PHP?

BCPP C/C++ Code Beautifier V1.9 - http://www.zeusedit....viewtopic.php?t=1067

Code Beautifier for C/C++, C#, D and Java - http://www.zeusedit....viewtopic.php?t=1044

Artistic Style Code Refomatting - http://www.zeusedit..../viewtopic.php?t=221

JussiJ

33
Here is the combination of MACRO and TOOL that i use to let me select a block of text in a file and process it by an external exe program, capture the output and paste it back replacing the originally selected text.

Just out of curiosity I whippped up this Zeus Lua macro which performs the same task :)

--
--        Name: Astyle Macro
--      Author: Jussi Jumppanen
--    Language: Lua Macro
-- Description: A simple Lua macro that takes the currently selected
--              text, saves it to the c:\temp\astlye.tmp file, runs it
--              through the astyle.exe utility, then pastes the result
--              back into the cdocument.
--
--  How To Run: Save to style.lua in the zScript directory.
--
--              All Zeus macros can be run using the macro execute menu
--              item or they can be bound to the keyboard or can be
--              attached to the macro drop down or popup menus.
--
function key_macro()
  -- macro only works for read/write documents
  if is_read_only() == 1 then
    message("The current document is marked as read only!")
    beep()
    return
  end

  -- macro needs some marked text
  if (is_marked() == 0) then
    message("To use this macro you need to first mark some text.")
    beep()
    return 1
  end

  -- get the current marked text
  local marked_text = macro_tag("$M")

  -- file that will be created
  local file_name = "c:\\temp\\astyle.tmp"

  -- open the temp file in binary write mode
  local file_out = io.open(file_name, "w+b")

  if file_out ~= nil then
    -- write the text to file
    file_out:write(marked_text)
    file_out:close()

    -- command line to be run
    local command = "astyle.exe --mode=c --indent-brackets --brackets=break --indent=tab --one-line=keep-blocks --one-line=keep-statements " ..  file_name

    -- command options: wait for tool to finish
    local flags = 32

    -- run command which should display a DOS window
    if system(command , 0, flags) == 0 then
       -- open the temp file in text reading mode
       local file_in = io.open(file_name, "r+t")

       if file_in ~= nil then
          local result = ""

          -- read in the file
          for line in file_in:lines() do
            result = result .. line .. "\r\n"
          end

          -- close the input
          file_in:close()

          -- add the result to the clipboard
          set_clipboard_text(result)

          -- paste the result into the document deleting the original text
          MarkPaste()
      else
        -- failed to open file
        message_box(1, "Error opening the '" .. file_name .. "' results file.")
      end
    else
      -- failed to run tool
      message_box(1, command .. "\nError running program!'")
    end
  else
    -- failed to create file
    message_box(1, "Error creating the '" .. file_name .. "' file.")
  end
end

key_macro()

34
Best Text Editor / Re: UltraEdit 11 - Best text editor?
« on: September 11, 2005, 09:47 PM »
Can you figure out a way to get it to wrap on window boundry automatically without inserting CRs into source code?  if so i'd love to know.

Zeus does not have a "soft CR/LF" mode as you describe above. When Zeus wraps a line in inserts a physical "hard CR/LF" character, hence using the left edge of the window as a line wrap point is not really possible :(

35
Best Text Editor / Re: UltraEdit 11 - Best text editor?
« on: September 11, 2005, 09:37 PM »
answering my own question, you can select the DEFAULT selection mode (column or line), and then use ctrl key to toggle.  column mode doesn't seem to be able to insert, but still its not a bad solution.

Zeus does indeed have support for column mode cut and copy and it will quite happily do column mode inserting. In fact Zeus has column, block and line modes of cut/copy/insert.

For example assuming either the Brief or BriefEx keyboard mapping are set as the active keymap then Alt+C keys will select column marking mode. Similarly the Alt+M and Alt+L keys will select block and line marking mode.

But when it comes to cutting/copying and pasting of text I don't think there is anything that Zeus can not do.

Depending on mode in which the text is selected determines the mode that gets saved into the clipboard. So for example if you cut/copy in column mode text then any paste into Zeus will also be in column mode. Naturally, if you then copy the text as line mode then it will get pasted back into the document as lines of text etc.

The exception to this rule is if overwrite mode is active. In this case Zeus assumes no text is to be inserted, but rather the existing text should be overwritten.

Now these are the settings for the Brief and BriefEx keymaps but since the Zeus keyboard mappings are fully configurable, it is possible to re-map these or any other keyboard functions to any key combination.

As you have noticed Zeus also has a mouse marking mode. The default mouse marking mode is set to column mode but this can be easily changed to line or block mode using the Options Editor Options. Also mouse marking mode can be temporarily over-ridden by first pressing and holding the Alt or Control keys, while mouse marking.

But irrespective of whether mouse or keyboard is used to copy the text the same rules apply.

Finally, it is true that Zeus does not have any menus defined for these keyboard functions, but since Zeus has over 500 keyboard functions it is not possible to map all keyboard functions to a menu item.

Pages: prev1 [2]