I have some formatted (verse) text I would like to include in a note field. Is there a way to embed blockquote or pre HTML tags or something?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-01-03
Nope, or at least almost no.
To allow anything like that on web based software with like PGV's architecture (where Privacy has to be paramount) would be asking for trouble. Such embedded code is a hackers dream, so it has been religiously removed throughout.
The tiniest of code is allowed for, and only in "Shared Notes" ( those stored as a level 0 NOTE record, available to be linked to any individual or family record). To allow these to be used for census and similar shared data just two formatting elements are available :
The "|" character either side of text content will implement a 'table cell' style.
A combination of ".b." within such an element, before the text will
bolden the text.
Either of these can ONLY be used on the second and subsequent rows of text
A typical entry would therefore read:
Test Note
|.b.This| is a test|
and display as:
Test Note
**This** is a test
The best solution is to either PDF the verse and add it as a media item, or link to a formatted page via URL.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No. Not all lines are left-justifed. I need it to preserve whitespace and serve it as escapes. I'd also like it to handle italics, bold, and underline.
Maybe RichText or very basic Markdown..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tim
You can force the indentation with hard spaces (as I did here), but you'll be unable to direct the text in a not to change fonts, be **BOLD**, *Italic*, or <u>underlined</u>. As Kiwi said, PGV allows no encoding or html formatting. It is disabled for security reason to block spurious code insertion.
-Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tim
Hard space the more common term for a
On a MAC, this is easy-peasy with an Option-Space. According to the above wikipedia item, a WIN PC would be entered as Alt+0160 (typed on numeric keypad). I've tested and used the MAC equivalent on many of my NOTEs to provide indentation, but don't currently have access to a windoze machine to check it.
-Stephen
That's why I said "some form of". Markdown has issues, to be sure.
at this point since it has to be backwards-friendly, I'd settle for translating spaces to nbsps automatically in notes fields. Emphasis on automatically.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have some formatted (verse) text I would like to include in a note field. Is there a way to embed blockquote or pre HTML tags or something?
Nope, or at least almost no.
To allow anything like that on web based software with like PGV's architecture (where Privacy has to be paramount) would be asking for trouble. Such embedded code is a hackers dream, so it has been religiously removed throughout.
The tiniest of code is allowed for, and only in "Shared Notes" ( those stored as a level 0 NOTE record, available to be linked to any individual or family record). To allow these to be used for census and similar shared data just two formatting elements are available :
The "|" character either side of text content will implement a 'table cell' style.
A combination of ".b." within such an element, before the text will
bolden the text.
Either of these can ONLY be used on the second and subsequent rows of text
A typical entry would therefore read:
Test Note
|.b.This| is a test|
and display as:
Test Note
**This** is a test
The best solution is to either PDF the verse and add it as a media item, or link to a formatted page via URL.
PGV should preserve line breaks. Wouldn't this be enough to format your verse?
No. Not all lines are left-justifed. I need it to preserve whitespace and serve it as escapes. I'd also like it to handle italics, bold, and underline.
Maybe RichText or very basic Markdown..
edit: serve spaces as &quot; escapes :)
Tim
You can force the indentation with hard spaces (as I did here), but you'll be unable to direct the text in a not to change fonts, be **BOLD**, *Italic*, or <u>underlined</u>. As Kiwi said, PGV allows no encoding or html formatting. It is disabled for security reason to block spurious code insertion.
-Stephen
Hard spaces? Multiple spaces get collapsed when displayed…
- does that work?
I don't know what "hard spaces" means. Manually indenting with the space character does not work - HTML collapses them all.
See http://hockin.org/genealogy/individual.php?pid=I79&ged=hockin - the note under Occupation has formatted (indented) lines which get scrambled.
Tim
Hard space the more common term for a
On a MAC, this is easy-peasy with an Option-Space. According to the above wikipedia item, a WIN PC would be entered as Alt+0160 (typed on numeric keypad). I've tested and used the MAC equivalent on many of my NOTEs to provide indentation, but don't currently have access to a windoze machine to check it.
-Stephen
: http://en.wikipedia.org/wiki/Non-breaking_space
+1 for Markdown support. Markdown is easy to read, even if it's not translated to font format, and has been in use for decades in Usenet.
> +1 for Markdown support
But isn't markdown the abominable system that SF uses for these forums that everyone bitches about. Keep it out of PGV.
When I type an underscore, it is because I want a sodding underscore.
That's why I said "some form of". Markdown has issues, to be sure.
at this point since it has to be backwards-friendly, I'd settle for translating spaces to nbsps automatically in notes fields. Emphasis on automatically.