Skip to main content
Inspiring
September 14, 2006
Question

DW extension to make it first two WORDS bold

  • September 14, 2006
  • 3 replies
  • 359 views
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


This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
September 17, 2006
Sorry for that

I am using ASP and MS access


Inspiring
September 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
Inspiring
September 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/