Advanced Search

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Quick (keyboard?) commands for text formatting, without WYSIWYG?

  1. #1
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default Quick (keyboard?) commands for text formatting, without WYSIWYG?

    I've long since left the evils of WYSIWYG behind. But sometimes I still miss one aspect of it: keyboard commands for bold, italics, underline, etc.

    This is rarely a major concern, but when I find yourself doing word processing in HTML, I often wish I had WYSIWYG again. But if I did that, it would generate a bunch of nonsense code I'd need to remove anyway.

    Today I found myself in such a situation so I actually started to use the quick reply box here, with it's WYSIWYG controls to quickly make sections of the text bold. (Writing [B] repeatedly can get old, after doing it dozens of times.) Then I used a text editor to find and replace that text with <strong>.

    (There's also the annoyance of needing to use <strong> and <em> instead of <b> and <i>, which is perfectly fine except that, again after typing it dozens of times, it gets tiring.)


    So ranting aside, does anyone have any good ideas for this?

    What I would love would be a text-based HTML editor that allowed/included keyboard shortcuts like ctrl+B for bold and it would insert <strong> tags around the text. Considering that the best tag might vary, perhaps it should be something customizable.

    Are there any programs like that? Any quick alternatives? (This doesn't come up very often, but when it does it's very slow for me at the moment, while I could do the same in MS Word in about 1/5 the time.)
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,677
    Thanks
    43
    Thanked 3,126 Times in 3,092 Posts
    Blog Entries
    12

    Default

    EditPadPro has custom clip collections. They can be just clips or they can wrap highlighted text. No hot keys, but you can double click on them in a sidepanel to use them in the main editing pane.

    NotePad++ has a plugin that's similar - Finger Text, that I find it a little harder to use, haven't quite figured out the easiest way. But it does have a sort of hot key type interface as I recall.

    Other editors, perhaps. There might even be a third party util out there that allows for clips to be dragged anywhere (well into most text editors anyway) and that's 'always on top'.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    djr33 (08-26-2012)

  4. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    One further complication in my specific case is that I'm on a mac, so I don't think I can use the programs you suggested. (I love TextWrangler, but I can't find anything like that for it.)

    Thanks for the ideas, though, and that should help a lot of people. Maybe I'll find something similar for mac as well-- it gives me a little hope that such things exist at all.

    This only is an issue when I'm doing serious word processing. So I don't need it to be convenient to access or even available in my daily editor. I just need something that is efficient when I need to use it for a project. Otherwise I can just type out <em> or <strong> a few times as needed.

    Maybe this would be a good idea for a script-- a basic WYSIWYG word processor for HTML that generates valid code. But limited specifically to basic word processing.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #4
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There really isn't any program for that. You can utilize the copy/paste technique, wherein you put in notepad a list of common commands, and you just copy and paste them into your work.

  6. #5
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    two things you can try;
    1. wine for running windows programs on other OS's
    2. custom keyboard shortucts
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  7. The Following User Says Thank You to bernie1227 For This Useful Post:

    djr33 (08-30-2012)

  8. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    Wine is for Linux, as far as I know. I don't think it's available for Mac. And there are some ways to run windows programs on a mac, but I'd prefer something native because every experience I've had with that has involved things running slowly and often crashing. (I also could use a PC if needed. But I'd just prefer to find something that works conveniently on my Mac.)

    I've thought about custom keyboard shortcuts. Actually, I guess I could take this to a very deep (OS) level and create a new keyboard layout that would actually type these things out for me. alt+b = <strong>, alt+shift+b = </strong>, etc. I've recently tried playing with making new keyboard layouts for linguistics/language reasons, but that's not a bad idea for web design either... thanks for pointing me in that direction again. I'd thought of it and didn't find any custom commands options in Text Wrangler, but I guess I don't have to be limited by that program, do I...
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #7
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,621
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Hey Daniel, you might want to look at Komodo Edit. It runs on Mac/Win/Linux. It has decent autocompletion, and I'm (almost) positive you can define your own macros. I'll check when I get home.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  10. The Following User Says Thank You to traq For This Useful Post:

    djr33 (08-30-2012)

  11. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    Alright, thanks. I'll check it out. Surprisingly, it's for Windows/Mac/Linux. Most programs aren't. I'm really happy with Text Wrangler for now, but if Komodo would make word processing in HTML a reasonable process, that will be a good tool to have too
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  12. #9
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,621
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    making a macro in Komodo Edit
    [this example uses version 7.0.2 for i86 Linux; recent versions for other OS's should be similar]

    Tools > Macros > Start Recording
    [do whatever: in this case, write <strong></strong> and then position cursor between tags]
    Tools > Macros > Stop Recording
    Tools > Macros > Save to Toolbox

    From the toolbox sidebar, you can assign key combinations to your macros (like Ctrl+b, for example).

    As much as I love macros, there are tons of better reasons to use Komodo. For example, if you have PHP installed on your system, Komodo can display function signatures (e.g., if you write in_array( and then pause, a tooltip will pop up that says "bool in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) Searches haystack for needle") and point out parse errors while you type.
    Last edited by traq; 08-30-2012 at 03:39 AM.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  13. The Following User Says Thank You to traq For This Useful Post:

    djr33 (08-30-2012)

  14. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    That sounds like a good option. It would be nice if it actually worked like a real word processor (but just as code rather than a preview) where you could actually select things and use ctrl+b, hit it again to remove the bold, etc. But maybe that's too much to ask for. (I actually doubt it would be all that difficult to write, though! Someone should do that...)

    Those features do sound cool. I grew tired of Dreamweaver long ago (even after I had been using only the 'code view' for a long time), but one feature I miss from that is the popup help with functions (just the order of arguments!). Maybe I'll get addicted to Komodo as I use it.

    Thinking about it, Text Wrangler actually isn't all that amazing-- I just love it because all of my other experiences with code editors have been so bad. It has FTP and direct editing of files on a site, it has decent and customizable syntax highlighting, it allows tabs to move entire blocks (multiple lines) of code, and it generally doesn't crash. It has a few more features than that, but those are my favorites anyway, and things often missing in other editors. Sounds like Komodo has all of that too, though, so we'll see.

    I seem to remember trying to use Komodo a while ago and it not working-- maybe it wasn't available on Mac a couple years ago or something like that.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •