View Full Version : Comments on the new features
Smith-Corona
08-11-2010, 02:58 PM
hi,
just trying out the new features in 4.2. A couple of initial questions;
- the syntax highlighting. What languages does this support? I've tried pasting in some VBA, Python, Lua... nothing happens. Is it meant to pick it up automatically? Or is there something you have to switch on?
- really like the idea of an "anchor", especially when dealing with long Items where the relevant text is right down at the bottom, but I'm not sure how it's meant to work. All I can see is the option to make an internal link as usual - ie with alt-L, when I'm in Item Details. But what I link to from there is still an Item, not a place within an Item. I don't see where the anchor is meant to be.
All in all though, some nice additions here, and it's good to see UR being actively developed!
quant
08-11-2010, 03:33 PM
yeah, I'm also often puzzled what new features really do, and I'm not novice here. Certainly not obvious from first reading. It would reeeeeealy help just to attach simple screenshot, and/or add 2-3 sentences of short explanation for each new feature/enhancement.
$bill
08-11-2010, 04:06 PM
I need a bit more explanation on the anchor and editing features too.
Some helpful information is here
http://kinook.com/UltraRecall/Manual/editordialog.htm
Use syntax coloring editor for text files: If checked, a syntax coloring text editor will be used to edit imported plain text files. This can be useful for editing source code files and snippets for languages such as C++, C, C#, ASP, VBScript, JavaScript, XML, and Lua. In addition to syntax coloring, the text editor also provides code folding, auto-completion (Ctrl+Space), bookmarks, line numbers, and more.
kinook
08-11-2010, 04:53 PM
Regarding syntax highlighting, it supports C/C++, HTML/XML, INI, JavaScript, LUA, Pascal, Python, SQL, and VB/VBScript. The syntax scheme used is based on the extension of the imported file (i.e., .cpp => C++, .html => HTML, etc. -- the mappings are actually defined by the parent:file entries in the .schclass files under Editor\Schemas in the UR installation folder). Change the file extension of the imported document's URL attribute and refresh to change the syntax scheme.
http://www.kinook.com/UltraRecall/Manual/textdocumenteditor.htm
Regarding internal link anchors, to create one, either focus the DE pane (Ctrl+1) and copy (Ctrl+C) or with focus in the detail pane choose Edit | Copy Internal Link Anchor (Ctrl+Shift+C), then paste into another text item.
http://www.kinook.com/UltraRecall/Manual/internallinking.htm
tfjern
08-12-2010, 02:26 AM
Well, Quant, Senior Member, Geek, didn't you once criticize those who complained too much about Kinook's frustratingly stubborn reluctance to offer user-friendly explanations (such as simple screen-shots, or, heaven forbid, videos)?
Check it out:
http://www.kinook.com/Forum/showthread.php?s=&threadid=3254&highlight=userfriendly
Smith-Corona
08-12-2010, 03:03 AM
I think what I might have expected was something more by way of an announcement from Kinook. I only rarely check the Version Update thread, but I keep an eye on this one fairly often. There's some neat features in this update, they're worth a) blowing the trumpet about and b) explaining in some detail.
Or some links from the mention of the various new features to the corresponding sections in the manual.
wordmuse
08-12-2010, 08:50 AM
If the file I want to import has a HTML variety of extension (htm, html, shtml), then URP treats it as a web page, and I can't see the underlying HTML code, let alone see it color coded.
I do like the fact that I can edit the web page directly. Very nice indeed. However, there definitely are times I would rather be noodling around in the weeds that is the code.
Is there a way to do that?
- Bal
lascasas
08-12-2010, 11:32 AM
Originally posted by kinook
Regarding syntax highlighting, it supports C/C++, HTML/XML, INI, JavaScript, LUA, Pascal, Python, SQL, and VB/VBScript. The syntax scheme used is based on the extension of the imported file (i.e., .cpp => C++, .html => HTML, etc. -- the mappings are actually defined by the parent:file entries in the .schclass files under Editor\Schemas in the UR installation folder). Change the file extension of the imported document's URL attribute and refresh to change the syntax scheme.
http://www.kinook.com/UltraRecall/Manual/textdocumenteditor.htm
Love the syntax highlighting. Can it be extended to include PHP, Perl and other languages?
Luap777
08-12-2010, 11:58 AM
Syntax highlighting needs some work. It's flickery and slow with a Python file when I tried it and it crashed on a VB.NET file. (didn't display anything at first then gave message about error in ntdll). It's probably not something I'll use a lot, was just checking it out. I can already import HTML pages containing syntax-highlighted code if I need to.
kinook
08-12-2010, 12:42 PM
Originally posted by wordmuse
If the file I want to import has a HTML variety of extension (htm, html, shtml), then URP treats it as a web page, and I can't see the underlying HTML code, let alone see it color coded.
I do like the fact that I can edit the web page directly. Very nice indeed. However, there definitely are times I would rather be noodling around in the weeds that is the code.
Is there a way to do that?
- Bal To edit an HTML file in the syntax editor (rather than using the built-in web page editor), you would need to rename the file with another extension (i.e., .txt) before importing, then change the extension of the imported item's URL attribute to .html and refresh.
kinook
08-12-2010, 12:50 PM
Originally posted by lascasas
Love the syntax highlighting. Can it be extended to include PHP, Perl and other languages? It doesn't come with support for those languages, but see the Schemas\*.schclass and SyntaxEdit.ini files in the Editor subfolder of the UR installation folder. You could use those as a template to define other languages (the syntax editor is provided by a third-party component, which doesn't include any documentation on the schema file format itself).
kinook
08-12-2010, 12:54 PM
Originally posted by Luap777
Syntax highlighting needs some work. It's flickery and slow with a Python file when I tried it and it crashed on a VB.NET file. (didn't display anything at first then gave message about error in ntdll). It's probably not something I'll use a lot, was just checking it out. I can already import HTML pages containing syntax-highlighted code if I need to. I didn't notice any problems with those (tried a 40K .py file and 10K .vb file). Please send more details.
http://www.kinook.com/Forum/showthread.php?threadid=3038
wordmuse
08-12-2010, 03:46 PM
Originally posted by kinook
To edit an HTML file in the syntax editor (rather than using the built-in web page editor), you would need to rename the file with another extension (i.e., .txt) before importing, then change the extension of the imported item's URL attribute to .html and refresh.
If I change it to .txt, I don't see any syntax highlighting. Should I?
May I suggest that you create a new extension, e.g., .htmlu, where URP would then know it's working with a HTML file. I just tested a file with a .htmlu extension, and it renders just fine in Firefox. So I could do my editing in URP and then easily preview my work.
- Bal
kinook
08-12-2010, 05:16 PM
If you change the extension back to .html in UR after importing and then refresh, it should.
armsys
08-12-2010, 06:19 PM
Originally posted by kinook
You could use those as a template to define other languages (the syntax editor is provided by a third-party component, which doesn't include any documentation on the schema file format itself).
Can you kindly give us some hints/keywords to google around the syntax definition? Could you name the Syntax Editor? Thanks.
Armstrong
wordmuse
08-13-2010, 12:22 AM
Originally posted by kinook
If you change the extension back to .html in UR after importing and then refresh, it should.
I must be doing something wrong. Do you mean to change the extension back to html in the URL attribute or in the tree? Not that it seems to matter. No matter how I play with it, I can't get the syntax to be highlighted.
Could you perhaps show a screenshot of how things should be set up and what I should see when I view an item that is syntax colored?
- Bal
kinook
08-13-2010, 07:11 AM
Originally posted by armsys
Can you kindly give us some hints/keywords to google around the syntax definition? Could you name the Syntax Editor? Thanks.
Armstrong http://www.codejock.com/products/syntaxedit/?platform=mfc
I contacted the vendor to ask about support for additional languages, but haven't heard back yet.
kinook
08-13-2010, 10:48 AM
Originally posted by wordmuse
I must be doing something wrong. Do you mean to change the extension back to html in the URL attribute or in the tree? Not that it seems to matter. No matter how I play with it, I can't get the syntax to be highlighted.
Could you perhaps show a screenshot of how things should be set up and what I should see when I view an item that is syntax colored?
- Bal See screen recording: http://www.kinook.com/Download/Temp/syntax.zip
Roaster
01-20-2011, 05:00 AM
Hi
Would it be possible to enable syntax highlighting without importing a document before, just using it in the editor.
I mean, I tell UR somehow that the current text item should be formatted e.g. in JavaScript syntax and here it goes?
I find it rather inconvenient to first import a file, rename it to get the editor enabled, doing the changes and rename it back to get a read-only syntax highlighting.
I'm pasting many code snippets into UR (Pro, btw) and do not have a file in most cases, hence this feature request.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.