[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] Custom Source Highlight
|
- From: Julien DEHAUDT <julien.dehaudt@xxxxxx>
- Date: Fri, 13 May 2022 06:04:17 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=st.com; dmarc=pass action=none header.from=st.com; dkim=pass header.d=st.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UIUBzEMQO/tu4IklaHKCoM9ZOxv3pwWSUczm1ymOsOQ=; b=Guw3aM9vMbwObCAA7k53cGdEuwc2pQxDESKnXfsaYidsnlqm2QTWFY+qPqmVyGWhS+lEbrRpJ8G14QS+Gw3x+ijHC4bLqQd5UsFWpciVBZkFGDAouhMHDZxWkKIDCmqfWIIa2hRHGymIeZDxpQe3kEGUXvq/rN3sj/9j0t/pmM/tbrqYkp5FqcRGz/pakX5TBbeccAEG4ogsAkC9JCj24/sR1BJ6I7Yl6wWzpZFqpt10nzmb9C/5vM+PGKkD2eOjFyCx4RVLLYO26gOgCzCGbGizNHvXmpALJaFa2PyFWcp28WU/ue8f2sC/JtIOBBB1fcKgPl1qcVvPu3qjb4xR7g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e2t0eRJ4LP4YZiZ6VIbLjMDjNbQIzvp4Oks7Q2JmNubpq/e6On94qE/HVoaCXh4QhtbpneCPqlzURAvnZfNrCPUlpeuJmM2OXb3E3LdV/ZdU+aN1M2ucg8JzUmgu+vmdxhQLqrf/X0p93IJjfFJnNXlc/QsquXvhRCc3yEjJJ/DTuTpYD50xMPjIK0Nf99ba/rybDQpQzPEXnskFzTMzg9hpcCojvieB2p45sVtzxSEHUH2SK4yciN2+ZZ4uvUZR53qXQV6HOqu+QSqapIj2Pl/YFuFd82Xfzv58fg4O/7oyGx9z/KN/WKgmv+ZHEscB2ZyRtfeoRUBFR1Un+S1rSg==
- Delivered-to: cdt-dev@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
- List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_actionid: 57cb4c72-6802-47a6-b31b-d510e734fade
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_contentbits: 0
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_enabled: true
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_method: Standard
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_name: 23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_setdate: 2022-05-13T06:04:15Z
- Msip_label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_siteid: 75e027c9-20d5-47d5-b82f-77d7cd041e8f
- Msip_labels: MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_Enabled=true; MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_SetDate=2022-05-13T05:51:45Z; MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_Method=Standard; MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_Name=23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0; MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_SiteId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_ActionId=8a991233-7b7d-4290-b4bb-42e83b9a8c4f; MSIP_Label_23add6c0-cfdb-4bb9-b90f-bf23b83aa6c0_ContentBits=2
- Thread-index: Adhmjci+LRP58enNTOSb589jWGI2qw==
- Thread-topic: Custom Source Highlight
Hi all,
I'm trying to implement a way to highlight custom section of code based on specific criteria, mainly C/C++ source inspection.
For example like the existing gray background surrounded by the ifdef/endif directive.
Do you have ideas about how to implement this?
I already quickly tried the org.eclipse.cdt.ui.semanticHighlighting EP but it seems to be too limited for this use-case. I wonder if org.eclipse.ui.genericeditor.highlightReconcilers could be to right entry point?
Thank in advance.
Julien
ST Restricted