Menu

Hot key to change text color in the SimplyHTML text editor?

2014-12-18
2014-12-19
  • Robertonisola

    Robertonisola - 2014-12-18

    Hi guys,

    When editing a note with the SimplyHTML text editor, I'd like to change the color of some words like the words "manager roles" below:

    text_highlight

    Currently, I have to do it manually as follow:
    - highlight the text
    - select the Text Color icon
    - choose a color
    - press ok (or enter)
    This is very time consuming, especially when I have a lot of words I need to change color.
    I am looking for a faster way, which allows me to do something like this:
    - highlight the text
    - press a hot key
    and voilà, the job's done.
    Is there any way to achieve this in Freeplane?

    Thank you.

     
    • Miguel Boyer

      Miguel Boyer - 2014-12-18

      You should check this thread from 3 years ago....

      https://sourceforge.net/p/freeplane/discussion/758437/thread/ee90a70c/

      We are still trying to see with Dimitry whether we can do something about
      it...

      2014-12-18 15:29 GMT+01:00 Robertonisola robertonisola@users.sf.net:

      Hi guys,

      When editing a note with the SimplyHTML text editor, I'd like to change
      the color of some words like the words "manager roles" below:

      [image: text_highlight]

      Currently, I have to do it manually as follow:
      - highlight the text
      - select the Text Color icon
      - choose a color
      - press ok (or enter)
      This is very time consuming, especially when I have a lot of words I need
      to change color.
      I am looking for a faster way, which allows me to do something like this:
      - highlight the text
      - press a hot key
      and voilà, the job's done.
      Is there any way to achieve this in Freeplane?

      Thank you.

      Hot key to change text color in the SimplyHTML text editor?
      https://sourceforge.net/p/freeplane/discussion/758437/thread/73e545c1/?limit=25#e68d


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/freeplane/discussion/758437/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Robertonisola

    Robertonisola - 2014-12-18

    Thanks for pointing me to a useful thread. I will continue the discussion there.

    FYI, I've already found a temporary solution: use AutoIt to perform the task. This solution satisfies my requirement but it is kind of ugly. I still prefer a built-in solution.

     
    • Miguel Boyer

      Miguel Boyer - 2014-12-19

      Robertonisola...

      Several months ago I did something automatic formatting with a keyboard
      shortcut and the inline editing of the node (versus SimplyHTML). The trick
      was to use a script with Java Robot.
      Java Robot performs like AoutoIt, but without leaving Freeplane. It should
      be less ugly and cumbersome. But you need to know some basic scripting,
      which could be your case or not.

      I don't find the thread, so i leave you my script in case it helps. You may
      consider to use only inline editing of the nodes (versus SimplyHTML), and
      the java.awt.Robot class to automate things.
      But be aware this solution has it limitations...
      here goes de script...

      import java.awt.FlowLayout;
      import java.awt.Robot;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
      import java.awt.event.InputEvent;
      import java.awt.event.KeyEvent;

          Robot r = new Robot()
      

      r.delay(300)
      r.keyPress(KeyEvent.VK_CONTROL)
      r.keyPress(KeyEvent.VK_E)
      r.keyRelease(KeyEvent.VK_E)
      r.keyRelease(KeyEvent.VK_CONTROL)
      r.keyPress(KeyEvent.VK_ALT)
      r.keyPress(KeyEvent.VK_NUMPAD0)
      r.keyRelease(KeyEvent.VK_NUMPAD0)
      r.keyPress(KeyEvent.VK_NUMPAD9)
      r.keyRelease(KeyEvent.VK_NUMPAD9)
      r.keyPress(KeyEvent.VK_NUMPAD1)
      r.keyRelease(KeyEvent.VK_NUMPAD1)
      r.keyRelease(KeyEvent.VK_ALT)
      r.keyPress(KeyEvent.VK_ALT)
      r.keyPress(KeyEvent.VK_NUMPAD0)
      r.keyRelease(KeyEvent.VK_NUMPAD0)
      r.keyPress(KeyEvent.VK_NUMPAD9)
      r.keyRelease(KeyEvent.VK_NUMPAD9)
      r.keyPress(KeyEvent.VK_NUMPAD3)
      r.keyRelease(KeyEvent.VK_NUMPAD3)
      r.keyRelease(KeyEvent.VK_ALT)
      r.keyPress(KeyEvent.VK_CONTROL)
      r.keyPress(KeyEvent.VK_K)
      r.keyRelease(KeyEvent.VK_K)
      r.keyRelease(KeyEvent.VK_CONTROL)
      r.keyPress(KeyEvent.VK_SPACE)

      r.keyPress(KeyEvent.VK_LEFT);
      r.keyRelease(KeyEvent.VK_LEFT);
      r.keyPress(KeyEvent.VK_LEFT);
      r.keyRelease(KeyEvent.VK_LEFT);

      2014-12-18 19:37 GMT+01:00 Robertonisola robertonisola@users.sf.net:

      Thanks for pointing me to a useful thread. I will continue the discussion
      there.

      FYI, I've already found a temporary solution: use AutoIt to perform the
      task. This solution satisfies my requirement but it is kind of ugly. I
      still prefer a built-in solution.


      Hot key to change text color in the SimplyHTML text editor?
      https://sourceforge.net/p/freeplane/discussion/758437/thread/73e545c1/?limit=25#8e84


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/freeplane/discussion/758437/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/