Notepad++ xml language file

798 views
Skip to first unread message

Brendan Hyland

unread,
Feb 18, 2010, 11:00:04 AM2/18/10
to taskjugg...@googlegroups.com

Hi all,

Here is a Notepad++ language file for TJ2. I really like this editor, it
makes working in XP bearable, and now with TJ3 I think with a bit of
work I'll have a proper TaskJuggler development environment set up here.

This file gets put into the %User%\Application Data\Notepad++ directory
on XP. If you've already defined any other user defined languages then
open then don't overwrite that file, instead append the taskjuggler
section to it.

You may prefer to switch up the keywords a little, but I find this setup
works quite similar to the TJ2 GUI. There are some minor problems - for
example brackets are sometimes not recognized if they are adjacent to
another character, so code folding can get confused. However this just
encourages well laid out code. Also I used a bit of a hack to have it
differentiate between, e.g. task as an object versus as a column
heading, and it works most of the time but will once in a while get the
colour wrong.

Provided as-is, and with encouragement to post back if you improve it.
Works in Notepad++ v5.6.6.

Enjoy,
Brendan
--
Brendan Hyland
brendan...@hylandqs.ca

userDefineLang.xml

sss

unread,
Feb 21, 2010, 1:56:03 PM2/21/10
to TaskJuggler Users
Hello,
I have win xp, TJ3, and Notepad++. I did download your file to %User%
\Application Data\Notepad++. But what do I do next? Do I need to
somehow tell Notepad++ to "see" this file? Can I then run TJ3 scripts
from Notepad++
Thanks so much
Steve


On Feb 18, 8:00 am, "Brendan Hyland" <brendan.hyl...@hylandqs.ca>
wrote:

>   brendan.hyl...@hylandqs.ca
>
>  userDefineLang.xml
> 6KViewDownload

Brendan Hyland

unread,
Feb 21, 2010, 5:22:49 PM2/21/10
to taskjugg...@googlegroups.com
'Taskjuggler' should show up as an option in your language menu, under
'user defined' and .tji files should automatically open with that
markup. If it doesn't just show up in the menu, then you could try the
user-defined-language-settings dock (there's a button in the toolbar)
and see if it's selectable in the 'user language' menu.

I haven't set it up to run the scripts from NPP yet, but I think that as
long as you have the correct environment path set up for ruby, it should
be pretty straight forward. I'll look into it this week and report back.
Currently I just run from a terminal.

Brendan

sss

unread,
Feb 26, 2010, 11:12:29 AM2/26/10
to TaskJuggler Users
In Notepad ++, under Language, there is now an option for TaskJuggler;
and File Open does now look for tjp files. Further, the tjp files are
formatted beautifully now. Thanks so much! I have not figured out
what the Run command might be. I think it may be as simply as tj3
test.tjp. A Dos window then opens, does something very quickly, then
goes away, so it's hard to know what happened. Of course, if I open a
DOS shell, then I say tj3 tutorial.tjp and see just what happens.
Thanks
Steve

Brendan Hyland

unread,
Feb 26, 2010, 11:30:13 AM2/26/10
to taskjugg...@googlegroups.com

It's disappearing because it is running into an error (probably because
your ruby bin isn't in your path and so it can't find tj3).
My ruby installation came with a batch file that adds the path each
time:

C:\Ruby19\bin\setrbvars.bat

You may have the same. Or you could permanently add the ruby path to
your %PATH%.

So the answer would probably be to make a batch file that includes
adding ruby to your path, then calling tj3 command (set up to take the
filename as an input), and then followed by a PAUSE so that it doesn't
just disappear when it's done.

I'm on deadlines so I won't be testing this out for a few days, but I
will report back.

Brendan

> --
> You received this message because you are subscribed to the "TaskJuggler
> Users" group.
> To post to this group, send email to taskjugg...@googlegroups.com
> To unsubscribe from this group, send email to
> taskjuggler-us...@googlegroups.com
> For more information about TaskJuggler visit http://www.taskjuggler.org
--
Brendan Hyland
brendan...@hylandqs.ca

JohnZ

unread,
Feb 27, 2010, 3:24:56 PM2/27/10
to TaskJuggler Users
> > > On Sun, 2010-02-21 at 10:56 -0800, sss wrote:
> > > > Hello,
> > > > I have win xp, TJ3, and Notepad++.  I did download your file to %User%
> > > > \Application Data\Notepad++.  But what do I do next? Do I need to
> > > > somehow tell Notepad++ to "see" this file?  Can I then run TJ3 scripts
> > > > from Notepad++
> > > > Thanks so much
> > > > Steve

Go to "Plugins/NppExec/Show Console Dialog"

Then the console is opened and you have access to the whole directory.

So, change to your project dir and execute e.g. "tj3 [project].tjp".

best regards

JohnZ

sss

unread,
Feb 27, 2010, 6:22:43 PM2/27/10
to TaskJuggler Users
At the DOS shell, tj3 will start TaskJuggler, and I can see the
output. It's just that if, in winxp, I go to Start, Run, then put in
the command. In that case, the command will run, then the DOS window
goes away, as soon as the program is done. Has to be run from a shell
to see if there were errors. And I am getting lots of errors with
some of the example scripts. Others are just fine. So, I am using
PowerCmd, as my DOS shell. Easier to see the history and it has a kind
of auto-completion. And I am trying Locate32 project, so that I can
search for words in a .tjp file since I am new to TaskJuggler. With
NotePad++, I have now installed NppExec. I see it has a shell too.
Here is my first tj3 chart. http://i50.tinypic.com/wvabnp.jpg. By the
way, is there any way to get more than one gantt bar, on the same row?

Thanks so much!
Steve

sss

unread,
Feb 27, 2010, 6:32:25 PM2/27/10
to TaskJuggler Users
I should be more precise, re what I mean about more than one gantt
bar, on one row. On the same row, can I show that a task has operated
for 2 days, and on the same row, show that a new one will run, for the
next 3 days? Or, must each task have its won gant bar, and on its own
row?
Thanks
Steve

On Feb 27, 3:22 pm, sss <neventsres...@gmail.com> wrote:
> At the DOS shell, tj3 will start TaskJuggler, and I can see the
> output.  It's just that if, in winxp, I go to Start, Run, then put in
> the command. In that case, the command will run, then the DOS window
> goes away, as soon as the program is done.  Has to be run from a shell
> to see if there were errors.  And I am getting lots of errors with
> some of the example scripts.  Others are just fine.  So, I am using
> PowerCmd, as my DOS shell. Easier to see the history and it has a kind
> of auto-completion.  And I am trying Locate32 project, so that I can
> search for words in a .tjp file since I am new to TaskJuggler.  With
> NotePad++, I have now installed NppExec.  I see it has a shell too.

> Here is my first tj3 chart.http://i50.tinypic.com/wvabnp.jpg.  By the

JohnZ

unread,
Feb 28, 2010, 4:39:20 AM2/28/10
to TaskJuggler Users
On 28 Feb., 00:32, sss <neventsres...@gmail.com> wrote:
> I should be more precise, re what I mean about more than one gantt
> bar, on one row.  On the same row, can I show that a task has operated
> for 2 days, and on the same row, show that a new one will run, for the
> next 3 days?  Or, must each task have its won gant bar, and on its own
> row?

I dont't know your use case , but yes every task has it's own row.

In a gantt chart every row is represented as a row.

So, you want to define a grouptask and visualize the subtasks in the
same row.

I think this makes not easier to read a gantt chart, from my
perspective it's
better to have this in separate rows...

best regards

JohnZ

Reply all
Reply to author
Forward
0 new messages