Ask Your Question
1

Can I set a hotkey to change the style of a line snippet? [closed]

asked 2014-02-05 20:52:58 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have been using a custom style for code entries for my programming lab papers which is working fine. I just want to know if there is anyway to switch between them with a hotkey. Also I can not figure out how to use the style for just a snippet of code in a regular sentence. The style (background, font, font size) takes over the whole line on me.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-29 16:45:04.975055

1 Answer

Sort by » oldest newest most voted
1

answered 2014-02-05 22:39:52 +0100

Regina gravatar image

For styling words you need to define a character style. The character formatting in the paragraph style is only used, if the character itself has no special formatting.

To use styles via keyboard you have to define your own shortcut keys. You can do this in Tools > Customize > Keyboard. Scroll down, select "Styles", open + , and select the kind of style in the list "Category". Select your designed style in the list "Function". Then select the desired shortcut keys from the above list "Shortcut keys", Alt+C for example. Then click on button "Modify". Notice, that this shortcut key will only work, when the style exists. Therefore you should define the style already in the document template.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-02-05 20:52:58 +0100

Seen: 103 times

Last updated: Jul 13 '14