collapse

* Welcome!

* Important Links

* BR Councils

* COTM and TOTM

* COTY and TOTY

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

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 429 times)

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

Offline Dani

  • Player Account: Inactive
    • player
    • account
    • OOC

      Dani

    • Posts

      8,388

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

    • View Profile
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:
 *     https://developers.google.com/apps-script/guides/docs
 *
 * Document service reference documentation:
 *     https://developers.google.com/apps-script/reference/document/
 */
function onOpen() {
  // Add a menu with some items, some separators, and a sub-menu.
  DocumentApp.getUi().createMenu('BBC')
      .addItem('Bold Conversation', 'boldConverstaion')
      .addToUi();
}


/**
 * Add BBC tags around all double quotes
 */

function boldConverstaion() {
  var body = DocumentApp.getActiveDocument()
      .getBody();
 
  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- dani@bloodrites.net -Discord- Dani#5222

 

 

anything