Share via


IBabelService Interface

Provides access to the Babel language service wrapper for integrating a language into Visual Studio.

IBabelService : IDispatch

Methods in Vtable Order

The following table shows the methods of this interface.

Method

Description

IBabelService::Init Method

Specifies the language selected by the user in the Visual Studio environment.

IBabelService::Done Method

Called once to indicate that the language service is no longer needed.

IBabelService::ColorCount Method

Returns the number of custom color classes.

IBabelService::GetColorInfo Method

Retrieves color information for a custom color class.

IBabelService::ColorLine Method

Returns colorization information for the specified line.

IBabelService::ParseSource Method

Parses a specified block of text.

IBabelService::GetMethodFormat Method

Used for formatting IntelliSense Parameter Info ToolTips.

IBabelService::GetCommentFormat Method

Used for commenting and uncommenting selected text.

IBabelService::GetImageList Method

Returns a set of custom icons.

Remarks

The methods of this interface are called by the Babel Package in the following order:

Notes for Implementers

Implement this interface to provide a language service in the environment using the Babel package. You can use the default Babel implementation (see The Default Babel Implementation in the Language Service Package) or you can implement the IBabelService interface yourself (see Implementing the IBabelService Interface).

Notes for Callers

This interface is accessed from within the Babel Package. When a file is loaded into Visual Studio, the file extension is used to look up which language service to instantiate. The Babel Package is loaded for all Babel language services.. The Babel Package examines all registered languages and determines which are the Babel Language services. For the specified file extension, the Babel Package gets the GUID of the specific language service and instantiates that language service's IBabelService interface. The default Babel classes then use that particular IBabelService interface to provide language-specific support to Visual Studio for the loaded file.

Requirements

Header: BabelService.idl

See Also

Concepts

The Default Babel Implementation in the Language Service Package

Implementing the IBabelService Interface

Other Resources

Babel Interfaces