On 03/05/2012 01:45 PM, Miguel Negrao wrote:
>
> A 05/03/2012, às 12:10, Jonatan Liljedahl escreveu:
>
>> On 03/05/2012 01:06 PM, Click Nilson wrote:
>>>> So when do you start accepting feature requests ? :)
>>>
>>> Great to see work on this underway. I'm sure you'll beat the Mac
>>> editor for convenience and functionality.
>>>
>>> My biggest request would be as a lecturer who uses SC a lot for
>>> teaching: the ability to quickly make text larger for viewing is
>>> super useful for classroom settings. So something like the cmd+
>>> cmd- options in the Mac editor would be lovely.
>>>
>>> I mean actually changing font size of all selected text quickly
>>> with dynamic rewrapping, rather than a zoom necessitating
>>> horizontal and vertical scrolling, if that makes sense.
>>
>> Yes, this is a good feature. But I really hope that rich-text (in
>> any format) will not be the only editing mode. I prefer to edit in
>> plain text mode where it's not even possible to use different
>> fonts/styles/sizes.
>>
>> So, the editor could have two modes (like TextEdit.app), and in the
>> plain text mode ctrl+/- would change the fontsize for the document,
>> while in the rich text mode it would change only selected text.
>
> Well, I think in plain text mode you should be able to choose your
> font type and size (which will affect all text equally). So you can
> make the whole text bigger or smaller for all files, but still keep
> it in plain text mode.
That was exactly what I meant, sorry if I was unclear. ctrl+/- would in
effect change the "plain text font size" preference without having to go
into some sort of preference editor.
> I’m not so sure that having rich text is a
> good idea... you loose too much time with the formatting. Most people
> use rich text to distinguish portions of the text and to do literate
> programming, but maybe it would be more productive to have a tag
> based system that would do the formatting for you, in real time. The
> problem with formatting systems (latex, markdown, schelp, etc) is
> that most implementations make it a two step process, which is not
> what you would want for writing sc code, that would cut the flow. But
> there are systems like Lyx, that can display most of the result in
> real-time and you can change the attributes of things via guis,
> instead of via code, i.e. switch a line from being a paragraph to
> being a title. Mathematica is also a system where the code is is
> displayed as nicely formatted document, and they have tex like
> attributes, but they also let you change fonts directly.
I'm afraid there are too many people that wants rich text editing, and
are used to it from SC.app. But having formatting tags (in comments,
perhaps) inside the code would be an interesting addition. Perhaps it
could be implemented as a plugin. It could work something like this:
//<big>
..here's some big code..
//</big>
..here's some normal code..
//<bold>
..this is bold code..
//</bold>
and it would be rendered in realtime, just like syntax highlighting. the
formatting tags themselves would be rendered in some less standing out
color and style. And their could be a toggle to hide them.
/Jonatan
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/