April 10, 2011

CodeBox 1.3

Today’s update brings new features, user interface improvements and bug fixes.

This version adds support for variable placeholders. Now you can wrap any piece of code into pairs of underscores like __this__ to define the new placeholder. Each snippet of code can have multiple placeholders.

Once placeholders are defined, you can edit them right before pasting from CodeBar. Click an Edit Code item in the asset menu to open the text editor. There you can jump between placeholders using the Tab key.

Many of you may have kept snippets as source files in folders on the Hard Drive. Now you can migrate to CodeBox really fast by simple dragging any files and folders from the Finder into the Sources view.

In addition to web link assets, the Notes field now can keep clickable URLs for web pages.

Thanks to your continuous feedback, most of the issues with syntax highlighting are fixed in this update. Also, some new syntaxes were added to the Code Editor.

Go get the new version! Thanks :)

UPD: CodeBar may not autorun after updating from earlier versions. In this case, please try to hint Finder where to find the helper app by launching it manually from here:

Applications/CodeBox.app/Contents/Library/LoginItems/CodeBar.app

This is a known issue that will be fixed in the next update. Sorry for temporary inconvenience!

11 comments:

  1. Interesting tool. The only thing I am worried about are variable placeholders: that format is used in many languages to denote special variables there, for example C, JavaScript, and Python. How do/can these "variable placeholders" work in those languages?

    ReplyDelete
  2. In PHP and Python snippets, CodeBox will recognize placeholders defined by triple underscores like ___here___.

    ReplyDelete
  3. im having a very weird problem, where the mac app store keeps asking me to update an app called codebox. the problem is, i've never heard of codebox before this nor installed it before! typing codebox in the spotlight reveals nothing.

    i tried hitting the update button, and a box pops up saying "you have updates available for other accounts. sign in to heinisf@me.com to update applications for that account."

    i went to look up that mobileme account and it turned out it belonged to some web studio in budapest (i live in singapore by the way) that ive never heard of before!

    anyone know how i can get rid of that update notification that shouldnt even be there?

    ReplyDelete
    Replies
    1. Enter information on ridding the heinisf@me.com CodeBox update?

      Delete
    2. Okay, now I have more information and can share it here.

      This is a problem of the Mac App Store which thinks that you have installed CodeBox. Sometimes it may be caused by installing a cracked software from the Store. There is no definite way to get rid of the update badge. Sometimes it may help if you reset App Store cache or remove the app Galaxy on Fire 2.

      So I'm sorry for inconvenience. Please contact Apple Support through the link in the top right corner of the Mac App Store. And let's hope this will be fixed eventually.

      Delete
  4. @Anonymous, please contact me by email to resolve that issue.

    ReplyDelete
    Replies
    1. I Have the same problem, cna u send me how to resolve that issue
      kilrahr@gmail.com
      thanks

      Delete
  5. I am having one issue with the placeholders when an underscore must appear either directly before or after the placeholder. For example, I use Drupal and might want to template the "hook" part of hook_form(), but if I use ___hook____form, I end up with 4 underscores after "hook" and CodeBox doesn't pick it up as a placeholder.

    ReplyDelete
    Replies
    1. As underscores cannot help in some cases, I'm planning to improve their support in the future updates. Till then, please consider to use a placeholder like "__hook__form" resulted in form and type hook_ with an underscore at the end.

      Delete
  6. Is it possible to implement placeholders in CSS and HTML as well?

    ReplyDelete
    Replies
    1. Sure thing, placeholders must be working in all snippets. Please report a bug if you experience any issues.

      Delete