* Welcome!

* Important Links

* Chat Box

Guest Friendly. No advertising please.

* BR Councils



Character of the Year

Thread of the Year

* Affliates

Affiliate with Us

Blood Rites RPG

Listed At

RPG-D Nerd Listings

Our Affiliates


* Credits

RSS Feed  Facebook  Tumblr    E-Mail

Canon: © Anne Bishop
Board's Plot: Blood Rites
Points Scheme: Mother Night
Ratio System: Blood Rites

Blood Rites best viewed in Firefox.
Established February 2010
by Jamie, Gina & Bowie.

* Welcome Guests

Please note we've temporarily disabled Guests from viewing our full forums. Members have access to see all details, and we'd love to have you join!

You are currently viewing our forum as a Guest. While you can see all we do, you can't participate. Please think about joining, we love new players. Click Here for more information.

Author Topic: Google Docs Auto Bolding Script  (Read 1221 times)

Description: With Video (List to my beautiful voice...)

Offline Dani

  • Player Account: Inactive
    • player
    • account
    • OOC


    • Posts


    • I have seen the throne of gods and it is empty.

Google Docs Auto Bolding Script
« on: Jan 24, 16, 11:20:47 AM »
Google Docs Auto Bolding Script

I write in Google Docs. I like being able to write and have it auto saved to the cloud. With how much I post though it gets SUPER annoying to bold all my conversation (which I like to do). For that reason, today I bring you AUTO BOLDING SCRIPT. This script goes through your Google Doc and converts left and right double quotes into the correct bolding text.

Considerations: You have to install this script on each document you create. For that reason I tend to write in just a few documents instead of creating a new one for each post. If you put it into multiple documents you may need to change the saved named to something like BBC Bold 1, BBC Bold 2, BBC Bold 3.

Open Document to add to.
Go to Tools -> Script Editor

Paste in this code:

Code: [Select]
 * The onOpen function runs automatically when the Google Docs document is
 * opened. Use it to add custom menus to Google Docs that allow the user to run
 * custom scripts. For more information, please consult the following two
 * resources.
 * Extending Google Docs developer guide:
 * Document service reference documentation:
function onOpen() {
  // Add a menu with some items, some separators, and a sub-menu.
      .addItem('Bold Conversation', 'boldConverstaion')

 * Add BBC tags around all double quotes

function boldConverstaion() {
  var body = DocumentApp.getActiveDocument()
  body.replaceText('“', '[b]“');
  body.replaceText('”', '”[/b]');

Save it. You may have to reload the document to get it to activate.

Video for fun, and profit.
character tracker

Contact me at: -email/gchat- -Discord- Dani#5222