[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for mode for Oracle Pro*C. AKA embedded SQL/C.

From: Robert Pollard
Subject: Re: Looking for mode for Oracle Pro*C. AKA embedded SQL/C.
Date: Mon, 19 May 2003 14:22:48 -0700

I am sorry I can't help you with your question but I believe you could help me. I have been looking for a way to define my own colorization scheme for a particular mode type. One of the ones I was needing to define was PL/SQL. You indicated there was a SQL and PL/SQL mode in Emacs. I was not aware that this existed. How can I get this mode? And, maybe you can help me understand how I can define my own mode or colorizations as well. I have bought books on Emacs (which are few and far between) but none of them talk about defining your own mode.

I have asked this list the question of how you define your own colors. After a few responses of RTFM to you can colorize text with the font-lock-mode command I gave up on getting what I was looking for. The manual describes and gives examples of adding keywords. This is not what I am looking for. I want to know how adding keywords works. It appears when you add keywords you use a type face definition like font-lock-warning-face. I don't want to use whatever font-lock-warning-face is using as a color or type definition. I want to be able to use my own colors when defining patterns. This is what I need to know.

Could/would you point me in a direction to find out how to define my own colors for specific patterns?

Could/would you point me in a direction to understanding what it would take to define my own mode?

Could/would you let me know how to use SQL or PL/SQL editing modes?


Robert Pollard

On Friday, May 16, 2003, at 02:07 PM, Mamouliane wrote:

Oracle Pro*C is basically a pre-processor. It takes a source file
written in C and containing SQL statements. Hence the name embedded
The pre-processor replaces all SQL statements by C statements &
function calls. In the end what you have is  C source code that is
then compiled and linked with Oracle libraries.
This is a very basic description of what it does but you get the idea.

Is anyone aware of such a mode available for Pro*C? I know of a SQL
mode and PL/SQL mode but can't find a mode for Pro*C or embedded
Should I write such a mode? Is it very difficult? It would basically
be an extension to the available C mode. There is already modes
for SQL and PL/SQL out there so I figure I would use that too.

What do you guys think?
Help-gnu-emacs mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]