What should be in the next Intype release

74 views
Skip to first unread message

Arturs Lapins

unread,
Sep 15, 2012, 11:46:29 AM9/15/12
to intype...@googlegroups.com
You guys could make live FTP like if I save my file it automaticly uploads to my ftp server.
Also you could add syntax highlighting editable and not only that so we can edit the background color of the selected line.

Martin "Cohen" Balazik

unread,
Sep 18, 2012, 12:22:45 PM9/18/12
to intype...@googlegroups.com
FTP is in plans, though as we don't want to postpone the next release too much, we can't squeeze it there. But it will definitely appear sometime after 1.0.

For the syntax-highlighting, let me quote a piece from the manual section, that we're now working on. It's not available on the website, so don't consider this as an RTFM, please :)

Syntax-highlighting in Intype is fully at your hands. The magic is done using two things:
  • Grammar
  • Theme

Grammar is a set of rules that describe the actual language (C, Ruby, PHP, JavaScript, etc.). It tells how comments, variables, numbers (etc.) look in a given language. A rule for describing an integer might look like:
{
match: /[0-9]+/
name: “number”
}
Intype uses these rules to mark pieces of the text with given names.
Theme describes what colors or font-styles assign to comments, variables, numbers, etc. Intype uses it to highlight the text by names provided by the grammar. A rule for assigning a green color to the number would look like:
{
scope: “number”
foreground: “#00FF00”
}
If you are familiar with HTML and CSS, then think of Grammar as a description of what comments, variables and numbers looks like for a given language.
Then you have a guy who takes those rules and converts the plain text in a document to a HTML markup. He goes line-by-line and simply wraps pieces of the text like <span class="comment">// my comment</span>. (This guy is actually Intype.)
Finally, the Theme is just like CSS and is used to apply styles (colors and font styles) to the HTML generated by the coder.

Both themes and grammars are editable using the Bundle editor. Although it is still not stable as we would like it be, you can give it a go. And possibly report any errors or things on your mind. We're currently working on our Manual section for the website which will give you much more information on how to create your own grammars or themes.


On 15 September 2012 17:46, Arturs Lapins <artursl...@gmail.com> wrote:
You guys could make live FTP like if I save my file it automaticly uploads to my ftp server.
Also you could add syntax highlighting editable and not only that so we can edit the background color of the selected line.



--
Martin "Cohen" Balážik

RussB

unread,
Jan 30, 2013, 6:57:14 PM1/30/13
to intype...@googlegroups.com
A solid FTP system for intype would be absolutely incredible. I can not wait for that!!
Reply all
Reply to author
Forward
0 new messages