codingdir logo sitemap sitemap |
Home
PHP
C#
C++
ANDROID
JAVA
JAVASCRIPT
PYTHON

How to make KDevelop use c style comments?


By : , Category : c++

Set the mode of the source to ANSI C89 either manually Editor->Tools->Mode->Sources->ANSI C89 or using a kate modeline /* kate: syntax ANSI C89; */

ReLated :
/* This is a comment */

Just make sure you have a space after /* ,
So it is treated as a single/multi line comment. And not mean to execute the last stored PL/SQL or SQL

To put it in detail.

What ever SQL*Plus interprets after / is ignored and it blindly pushes it's cached block into the server. Except for /* followed by a new line or space.

SQL> SELECT * FROM DUAL;

D
-
X

SQL> /*t*/

D
-
X

SQL> /*
SQL> */
SQL> /

D
-
X

SQL> /*s

D
-
X

From Document:

You must enter a space after the slash-asterisk(/*) beginning a comment.

Quick way

Use this regex:

(?<=s)//([^

]*)

Replace with:

/*$1*/

Explanatory way

1 - Double slashes // weren't going to replace, because you had them in that capturing group. So you'll capture and replace them again.

2 - Most of the time there is nothing but a space or a newline ( ) before comments begin. I included this as a lookbehind to ensure. By this way, URLs and DOCTYPE won't get touched.

* I don't confirm this searching and replacing method, however it may work with most cases.

Update

Take care of settings. You should have you cursor at the very beginning of the file content.

enter image description here

Then do a Replace All

enter image description here

Haskell-mode uses

       (modify-syntax-entry ?{  "(}1nb" table)
       (modify-syntax-entry ?}  "){4nb" table)
       (modify-syntax-entry ?-  "_ 123" table)))
       (modify-syntax-entry ?
 ">" table)

I know that I'm really late with this, but you can add a the data-href attribute to the facebook like button when you are using the XMLNS version of it, which I can see is being used from the comments section. So for your example you would put:

<fb:like layout="box_count" action="like" show_faces="true" share="true" data-href="http://www.humanreligions.info/humanism.html"></fb:like>
Comments


Message :
Login to Add Your Comments .
How to disable registered OpenCL platforms on Windows?
Is Observable broken in Angular 2 Beta 3?
Cross-thread operation not valid when using Invoke
How to pass an IEnumerable or queryable list of properties from Controller to View
Finding numbers after a certain keyword using Python
Pocketsphinx recognizes random phrases in a silence
Passing non-thread-safe objects through thread-safe containers
React scroll nav
BizTalk WCF-BasicHttp Adapter does not allow Empty string for Service Certificate Props
Why property ''cause" of Exception is repeating forever?
Privacy Policy 2017 © codingdir.com All Rights Reserved .