dailysudoku.com Forum Index dailysudoku.com
Discussion of Daily Sudoku puzzles
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Aligned Grid With Formatting: An Alternate Method

 
Post new topic   Reply to topic    dailysudoku.com Forum Index -> Site help
View previous topic :: View next topic  
Author Message
Asellus



Joined: 05 Jun 2007
Posts: 865
Location: Sonoma County, CA, USA

PostPosted: Sun Sep 23, 2007 7:45 pm    Post subject: Aligned Grid With Formatting: An Alternate Method Reply with quote

It is possible to use formatting such as bold or color in an aligned grid. However, the posting method does not involve the "Code" method.

First, these instructions assume one is already familiar with the method discussed in the topic "How to align your grid when posting a message."

Prepare an aligned grid using Notepad or some other editor using a fixed xx font such as Courier.

Next, insert the formatting BBCodes where you want the formatting to appear. (BBCode info can be accessed from the message editing screen; the link is under "Options" on the left side of the screen.)

Finally, you need to insert the HTML "pre" (for pre-formatted text) commands at the beginning and end of your grid. This is shown in the examples below.

It is a very good idea to "Preview" your message to be certain it will display as you intended and that there isn't some error.

One more thing: for this method to work, HTML must be enabled in your message post. If HTML is disabled in your Profile, then you must uncheck the "Disable HTML in this post" box immediately below the message text box on the editing screen.

Example with bold font:
+-----------------+------------+----------+

| 1 9 26 | 5 26 4 | 8 3 7 |
| 28 7 5 | 3 1 28 | 4 9 6 |
| 468 46 3 | 7 68 9 | 5 1 2 |
+-----------------+------------+----------+
| 2479 24 1248 | 6 278 3 | 17 5 489 |
| 247 3 1248 | 9 5 28 | 17 6 48 |
| 679 5 68 | 4 78 1 | 3 2 89 |
+-----------------+------------+----------+
| 5 8 7 | 2 3 6 | 9 4 1 |
| 3 246 246 | 1 9 7 | 26 8 5 |
| 26 1 9 | 8 4 5 | 26 7 3 |
+-----------------+------------+----------+

Notice that the 48 UR in R45C39 is highlighted in bold.

Here is what was actually typed in the message text in order to produce the results above:
Code:
<pre>+-----------------+------------+----------+
| 1     9    26   | 5  26   4  | 8  3 7   |
| 28    7    5    | 3  1    28 | 4  9 6   |
| 468   46   3    | 7  68   9  | 5  1 2   |
+-----------------+------------+----------+
| 2479  24   12[b]48[/b] | 6  278  3  | 17 5 [b]48[/b]9 |
| 247   3    12[b]48[/b] | 9  5    28 | 17 6 [b]48[/b]  |
| 679   5    68   | 4  78   1  | 3  2 89  |
+-----------------+------------+----------+
| 5     8    7    | 2  3    6  | 9  4 1   |
| 3     246  246  | 1  9    7  | 26 8 5   |
| 26    1    9    | 8  4    5  | 26 7 3   |
+-----------------+------------+----------+</pre>

The bold effect is not very prominent. So, you may instead wish to use color:
+-----------------+------------+----------+

| 1 9 26 | 5 26 4 | 8 3 7 |
| 28 7 5 | 3 1 28 | 4 9 6 |
| 468 46 3 | 7 68 9 | 5 1 2 |
+-----------------+------------+----------+
| 2479 24 1248 | 6 278 3 | 17 5 489 |
| 247 3 1248 | 9 5 28 | 17 6 48 |
| 679 5 68 | 4 78 1 | 3 2 89 |
+-----------------+------------+----------+
| 5 8 7 | 2 3 6 | 9 4 1 |
| 3 246 246 | 1 9 7 | 26 8 5 |
| 26 1 9 | 8 4 5 | 26 7 3 |
+-----------------+------------+----------+

Here is what was typed to produce this grid:
Code:
<pre>+-----------------+------------+----------+
| 1     9    26   | 5  26   4  | 8  3 7   |
| 28    7    5    | 3  1    28 | 4  9 6   |
| 468   46   3    | 7  68   9  | 5  1 2   |
+-----------------+------------+----------+
| 2479  24   12[color=red]48[/color] | 6  278  3  | 17 5 [color=red]48[/color]9 |
| 247   3    12[color=red]48[/color] | 9  5    28 | 17 6 [color=red]48[/color]  |
| 679   5    68   | 4  78   1  | 3  2 89  |
+-----------------+------------+----------+
| 5     8    7    | 2  3    6  | 9  4 1   |
| 3     246  246  | 1  9    7  | 26 8 5   |
| 26    1    9    | 8  4    5  | 26 7 3   |
+-----------------+------------+----------+</pre>

If you choose to combine formats, be sure to follow proper command nesting syntax:
Code:
[b][color=red]48[/color][/b]  is correct
[b][color=red]48[/b][/color]  is NOT correct

Good luck!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    dailysudoku.com Forum Index -> Site help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group