http://www.jindent.com |
|
Next: Footer |
Header detection smart mode |
/* #line 1 * MyClass.cpp 1.82 99/03/18 line 2 * line 3 * Copyright (c) 1994-1999 Sun Microsystems, Inc. line 4 * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. line 5 * All rights reserved. line 6 * line 7 * This software is the confidential and proprietary information of Sun line 8 * Microsystems, Inc. ("Confidential Information"). You shall not line 9 * disclose such Confidential Information and shall use it only in line 10 * accordance with the terms of the license agreement you entered into line 11 * with Sun. line 12 */ line 13 class MyClass { ... } |
infinite
turns this smart mode feature off.See also: | Header insertion mode , Detect headers containing keys , Detect headers NOT containing keys |
Detect headers containing keys |
/* * MyClass.cpp 1.82 99/03/18 * * Copyright (c) 1994-1999 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ class MyClass { ... } |
See also: | Header insertion mode , Detect headers NOT containing keys , Header detection smart mode |
Detect headers NOT containing keys |
/* * MyClass.cpp 1.82 99/03/18 * * Copyright (c) 1994-1999 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ class MyClass { ... } |
See also: | Header insertion mode , Detect headers containing keys , Header detection smart mode |
Format detected headers |
/************************************************************************ * MyClass.cpp 1.82 99/03/18 * * * * Copyright (c) 1994-1999 Sun Microsystems, Inc. * * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * * All rights reserved. * * * * This software is the confidential and proprietary information of Sun * * Microsystems, Inc. ("Confidential Information"). You shall not * * disclose such Confidential Information and shall use it only in * * accordance with the terms of the license agreement you entered into * * with Sun. * ************************************************************************/ package mypackage; class MyClass { ... } |
/* * MyClass.cpp 1.82 99/03/18 * * Copyright (c) 1994-1999 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ class MyClass { ... } |
Blank lines before header |
¶ ¶ /* * MyClass.cpp 1.82 99/03/18 * * Copyright (c) 1994-1999 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ ¶ class MyClass { ... } |
/* * MyClass.cpp 1.82 99/03/18 * * Copyright (c) 1994-1999 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ class MyClass { ... } |
Blank lines after header |
Header text template |
/* * $fileName$ $version$ $date$ * * Copyright (c) 1994-2005 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ |
/* * TestClass.cpp 1.8 2005-01-10 * * Copyright (c) 1994-2005 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ class TestClass { ... } |
version
is a user defined environment variable.date
represents the current date and fileName
the filename of the
corresponding file.See also: | Jindent - Settings - Environment - Environment Variables - Special Variables |
Header insertion mode |
Do not insert new header
-
Do not insert header template at top of source code and keep all detected headersInsert new header and delete detected header
-
Always insert header template at top of source code and if an existing header is detected then delete it.
/* * $fileName$ $version$ $date$ * * Copyright (c) 1994-2005 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ |
// // File MyClass.cpp // // Version: 1.8 // Date: 2004-10-01 // // Copyright (c) 2005 Acme Co. // All rights reserved. // // Author: Ren Hoek // class MyClass { ... } |
/* * MyClass.cpp 1.8 2005-01-10 * * Copyright (c) 1994-2005 Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. */ class MyClass { ... } |
Insert only new header if no header is detected
-
Insert only header template at top of source code if no existing header is detected.