Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

DW extension to make it first two WORDS bold

LEGEND ,
Sep 13, 2006 Sep 13, 2006
dear experts,

I have a db with one column - DESCRIPTION

I would like to have the first two words of this column to be displayed in
BOLD, how can I do that in DW

I am sure there must be an extension for this

please help

thanks


TOPICS
Server side applications
352
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 14, 2006 Sep 14, 2006
Techy wrote:
> I have a db with one column - DESCRIPTION
>
> I would like to have the first two words of this column to be displayed in
> BOLD, how can I do that in DW

When asking a question about databases, you should always say which
database and which server-side language you are using. The answer will
almost always be different for each one.

I very much doubt that anyone has created a Dreamweaver extension to do
this. However, it should be relatively easily accomplished using
server-side string manipulation functions. Without knowing what you're
using, nobody can give you an answer.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 14, 2006 Sep 14, 2006
David Powers wrote:
> Techy wrote:
>> I have a db with one column - DESCRIPTION
>>
>> I would like to have the first two words of this column to be
>> displayed in
>> BOLD, how can I do that in DW
>
> When asking a question about databases, you should always say which
> database and which server-side language you are using. The answer will
> almost always be different for each one.
>
> I very much doubt that anyone has created a Dreamweaver extension to do
> this. However, it should be relatively easily accomplished using
> server-side string manipulation functions. Without knowing what you're
> using, nobody can give you an answer.
>

sure, you can do that with :

- server-side language like(PHP, ASP, JSP, CFM, Ruby, ...)
- javascript

here is javascript function

function setBold(string){
var pos = string.indexOf(" ");
var pos2 = string.indexOf(" ",pos+1);
var first = string.slice(0,pos2).bold();
var last = string.slice(pos2);
document.write(first+" "+last);
}
setBold("salut c'est moi");

you can do that (properly) with regexp
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 16, 2006 Sep 16, 2006
LATEST
Sorry for that

I am using ASP and MS access


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines