Search found 543 matches

by pjj
28 Apr 2013 20:31
Forum: External or integrated tools
Topic: Source Code Pro -- free monospace Unicode font from Adobe
Replies: 3
Views: 15907

Re: Source Code Pro -- free monospace Unicode font from Adob

"Slant is a collaboratively edited resource that helps you quickly make decisions." I just learnt it has nice presentation of the most popular fonts for coders, so for the record let me put it here: http://slant.co/topics/67/~what-are-the ... ming-fonts
by pjj
03 Feb 2013 19:26
Forum: Syntax files
Topic: syntax highlighting for django
Replies: 3
Views: 14318

Re: syntax highlighting for django

I don't get it; what do you want to achieve? Highlight just these two strings, {% and %}? Or anything that goes in between? A code sample would be much appreciated (I don't know Python.)
by pjj
03 Feb 2013 12:23
Forum: Syntax files
Topic: syntax highlighting for django
Replies: 3
Views: 14318

Re: syntax highlighting for django

Assuming that your question really reads How can you enable Python highlighter in HTML? the answer is that, to my best knowledge, you can't... easily. But using a little trick you will be able to do this. Here's how: 1) Environment > Options.. > Source > Enable multiple highlighters in HTML must be ...
by pjj
23 Jan 2013 09:55
Forum: Syntax files
Topic: black background
Replies: 2
Views: 15545

Re: black background

In the same place where you set your colors, i.e.
background.png
background.png (30.75 KiB) Viewed 15538 times
Please remember highlighters are set per filetype.
by pjj
29 Dec 2012 19:45
Forum: News
Topic: Merry Christmas
Replies: 2
Views: 15541

Re: Merry Christmas

I've been away for a while and couldn't write earlier, but since technically we're just amidst Christmas (it'll last till January 6th!) it's not too late to wish you all merry Christmas, too! :) And to Rickard: God bless you for the outstanding editor you've been giving us.
by pjj
08 Oct 2012 12:21
Forum: External or integrated tools
Topic: Source Code Pro -- free monospace Unicode font from Adobe
Replies: 3
Views: 15907

Source Code Pro -- free monospace Unicode font from Adobe

In case you haven't heard, a couple of days ago Adobe issued free (open source) monospace version of its (also free) Source Sans Pro (cf. https://blogs.adobe.com/typblography/2012/09/source-code-pro.html): https://blog.typekit.com/wp-content/uploads/2012/09/sourcecodesplash.png I've been using it si...
by pjj
26 Jul 2012 20:55
Forum: Scripts
Topic: Script to convert characters
Replies: 3
Views: 16286

Re: Script to convert characters

Walti has written such a script, cfr. http://www.rjsoftware.se/Forum/viewtopic.php?f=11&t=1184 In fact I have written one, too, but alas not all chars are converted; I thought that maybe the script file should be saved as UTF-16, but it didn't help. Anyway, here it is: function replaceEntities()...
by pjj
12 Jul 2012 19:05
Forum: Scripts
Topic: [script] Invert lines
Replies: 0
Views: 10527

[script] Invert lines

Here's another simple script I wrote a couple days ago and I thought I'd share with you: it changes the order of lines, i.e. line 1 line 2 line3 becomes line 3 line 2 line1 It deletes blank lines in the selection, btw: // turn off screen updating Document.BeginUpdate(); if (Document.SelLength == 0) ...
by pjj
10 Jul 2012 20:04
Forum: Scripts
Topic: How i use the Delete()-procedure in JS ?
Replies: 5
Views: 20580

Re: How i use the Delete()-procedure in JS?

The code you propose triggers "Expression expected" error. It should be (as I mentioned above):

Code: Select all

var s = "My string";
DeleteStr(s,1,3);
by pjj
10 Jul 2012 18:39
Forum: Scripts
Topic: How i use the Delete()-procedure in JS ?
Replies: 5
Views: 20580

Re: How i use the Delete()-procedure in JS ?

Still grappling with replace in a string? :wink: Try DeleteStr instead of Delete; works for me.
by pjj
07 Jul 2012 14:27
Forum: Scripts
Topic: Replace In A String
Replies: 1
Views: 11173

Re: Replace In A String

Seems like it doesn't want to use empty string as a replacement at all. No idea how to circumvent it, though.
by pjj
27 Jun 2012 19:00
Forum: Scripts
Topic: [script] Add smart block comments
Replies: 0
Views: 8479

[script] Add smart block comments

Recently I've learnt a neat trick, which I dubbed "smart block comments". The idea is that you can comment block of code out or "in" by adding or deleting just one space (this of course works only for languages that support block comments in the form of /* */). This is normal cod...
by pjj
23 Jun 2012 11:33
Forum: Scripts
Topic: [bug] Could not execute command line!
Replies: 2
Views: 10307

Re: [bug] Could not execute command line!

What a coincidence! I came to conclusion I should have filled this in "Bugs" sections, so I started to move it there, when I saw you reply. Many thanks! You are, of course, right, double slash is the solution. And as for the docs, yes, they should tell the user to use double quotes. And I ...
by pjj
21 Jun 2012 14:28
Forum: Scripts
Topic: [bug] Could not execute command line!
Replies: 2
Views: 10307

[bug] Could not execute command line!

This is the error message which I get while invoking MainApp.RunAppAndWait("c:\windows\notepad.exe", "", false, false); When I run MainApp.RunApp("c:\windows\notepad.exe", "", false, false); nothing happens at all. What's wrong? And yes, I have notepad.exe in ...
by pjj
16 Jun 2012 10:51
Forum: Syntax files
Topic: Does anyone have an .htaccess syntax file?
Replies: 3
Views: 13287

Re: Does anyone have an .htaccess syntax file?

I'm glad it worked for you; alas, it haven't worked for me :cry: I removed "Tags" altogether and now I have random results: comments are still not highlighted as they should be, some elements lost their colors they had previously, and some other got colored. Oh, joy! :evil: Perhaps I shoul...