Feb. 14th, 2013

wizzard: (Default)
Гусары, молчать!

Я в курсе, что для таких вещей кошерно использовать Markdown и TeX, и регулярно им пользуюсь, но как-то никогда не испытывал особого пиетета при выборе "WYSIWYG/не WYSIWYG".

Короче, я думаю, раз уж вы взялись использовать Word - то знаете, что там есть стили. И используете их!

Так вот, берем кусок кода, форматируем его вручную моноширинным шрифтом по вкусу, далее делаем Right click -> Create style. Называем стиль "Code".

После этого выбираем стиль в палитре стилей, делаем "Modify" и в левом нижнем углу нажимаем "Format"->"Language". Ставим галочку "Do not check spelling or grammar". По желанию можно еще создать hotkey.

Вуаля, теперь нас не будут беспокоить и подчеркивать почем зря. Для комментариев можно сделать стиль другого цвета, унаследованный от этого, и включить в них спеллчек обратно.

Вроде и мелочь - а упрощает жизнь на порядок.
wizzard: (Default)
(цитата)

Modern programming is primarily text because that’s what a keyboard affords us. We could use a mouse for freeform input, but that’s too painful in my experience. With a pen and paper, we are afforded full use of graphs, diagrams, arrows, functional curves, sketches (e.g. of characters, world maps, interactions), of ad-hoc mathematical symbology, etc.

This is a freedom that I love in my note taking, when I’m actually thinking about ideas. I’m that person who buys composition books and handfuls of pens and just wanders off to a park or restaurant. I often find it difficult to shift back to rigid program text.

I like scratch space. I scratch notes in margins. I connect ideas together. I’m not fond of structured editors. But this notion of an “unstructured” edit space that happens to represent a structured virtual program object (achieved via clarifications and constraints) appeals to me greatly.

http://awelonblue.wordpress.com/2012/10/26/ubiquitous-programming-with-pen-and-paper/

собственно говоря, ровно по этой причине я люблю OneNote, rich text и индуктивные (не резистивные) тачскрины со стилусом.

Profile

wizzard: (Default)
wizzard

January 2019

S M T W T F S
  12 345
6789101112
1314 1516171819
202122 23242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 14th, 2025 08:41 pm
Powered by Dreamwidth Studios