Software :: Put Vim Indentation Style Comments In A Source File?

Jul 15, 2011

I have seen that it's possible to put special comments in a source file that tell vim what indentation style to use. The problem is that i don't know how to use them, and can't find and tutorials or documeantaion since I have no clue what this feature is called.

View 3 Replies


ADVERTISEMENT

Programming :: How To Write To A File With Specific Indentation Through Php

Dec 12, 2008

I am a beginner with php ,trying to work my way through.
I have a file to be written with particular indentation and by appending some special characters...
this is the o/p file i wanted. could anyone please guide me as to how i can write it? code...

View 1 Replies View Related

Fedora :: Print PDF File With Comments

Dec 19, 2010

How can I print a PDF file with comments (and highlights) on Fedora 14?

View 4 Replies View Related

General :: Write A Script To Convert All DOS Style Backslashes To UNIX Style Slashes?

May 20, 2011

How do I write a script to convert all DOS style backslashes to UNIX style slashes in a list of files /

View 3 Replies View Related

Debian Multimedia :: Notification In Bar Style Instead Of Box Style?

Nov 14, 2015

which kind of package enables the notification bar ("(A) Connection Established I'm running Code: Select allLinux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux on two machines with i3 window manager but one have notifications in a box, the other one in a bar on the top of the screen. I would like two enable the "bar style" on the second machine as well.

View 4 Replies View Related

Ubuntu :: Bibtex Style File Missing

May 3, 2011

I'm trying to use a bibtex style file from the texlive-publishing package, but bibtex cant seem to find the .bib file even though I've tried everything from placing it in the same directory to exporting the BST to: p, li { white-space: pre-wrap; } export BSTINPUTS=/usr/share/texmf-texlive/bibtex/bib/IEEEtran/ but bibtex still cant find my file.

View 1 Replies View Related

Fedora Networking :: Dropbox Style VPN File Sharing?

May 11, 2009

Is there a way to share files over a VPN with a Dropbox type download system? I want the files to be able to update to a local file on the clients when updated on the server.

View 5 Replies View Related

Ubuntu :: Bibtex Style File Missing From Package

May 3, 2011

I'm trying to use a bibtex style file from the texlive-publishing package, but bibtex cant seem to find the .bib file even though I've tried everything from placing it in the same directory to exporting the BST to:
export BSTINPUTS=/usr/share/texmf-texlive/bibtex/bib/IEEEtran/
But bibtex still cant find my file.

View 1 Replies View Related

General :: DU Style Directory Listing With File Numbers

Sep 6, 2010

Is there a command to return a recursive listing of sub-directories and the number of files in them? I have found plenty of ways to give me the total number of files in a directory structure, but none that gives a list of the sub-directories with the number of files in them. "du" gives me a listing of directories with their sizes, but I couldn't find an option (or any other way) to give me the number of files as well. Ideally, I'd like to get list with "Size" "Files" "Dir name" - And the order of the columns doesn't matter. Is there a "simple" command line solution or do I need a shell script for that?

View 5 Replies View Related

Ubuntu :: Indentation Lost With Longlines In Emacs / Prevent This?

May 26, 2010

I'm an emacs (and ubuntu of course!) enthusiast, and I'd like to use it to write latex file. I'm using longlines mode in emacs to wrap around the lines, the problem is though that once a line is wrapped, the indentation is lost...

is there a feature which could be activated to prevent this?

View 2 Replies View Related

Programming :: IndentationError: Unindent Does Not Match Any Outer Indentation Level

Feb 2, 2010

i was recently building on a simple socket program i had written in python basically like a little chat client but i added a server_socket.close command to kill the server on disconnect and now im getting all sorts of indentation errors


Code:

#! /usr/bin/python
2 import socket
3 server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
4 server_socket.bind(("localhost", 5000))

[code]....

IndentationError: unindent does not match any outer indentation level

View 1 Replies View Related

Programming :: Create Doc Comments In Vim Using Pre-typed Text?

Jul 5, 2011

I currently have a set up in vim so that when I type "<leader>ns" it takes any given word and turns it into a sub "sub word(){}". I also have it when I type "<leader>nc" it creates a doc comment section that is "blank". I was wondering if someone could help me out with combining the two so that when I typed <leader>ns it would create the doc comments with the word already in the Subroutine: line and create the new sub routine aswell. I'm trying to understand what I have (downloaded from the internet) and only doing so so.
Code:

" Put cursor over word and hit ,ns to create new Sub
nmap <leader>nc o
#------------------------------------------------------------------------------
# Subroutine:
# Function :

[code]....

View 3 Replies View Related

Programming :: Python ConfigParser Not Saving Comments?

Jun 16, 2011

I have a lot of scripts in Bash and am 'converting' one of them to Python just to get to know how Python works. Up to now I'm loving it, the feel, the logic, the power, ...

1. I have a template file which will be filled in by a technician, meaning it's filled with comments (#) and variable = value combinations, where the technician needs to fill in the values needed under the section referring to the configuration he's performing. 2. After installing from DVD/ISO, the software RPMs get installed and there is a default configuration file containing variable = value combinations where the values need to be changed to the values indicated in the template file mentioned in 1.

In order to do this I played around (and Googled a lot) with ConfigParser. I can load the template, get whatever value I need, load the configuration file, set the new value to the correct variable and write the file.

I checked that the template and configuration files loaded (open()) contain everything, including comments. However when I write the configuration file all comments get lost.

Here's what I have so far: Class to create a fakesection header since ConfigParser needs sections and the configuration file doesn't have those.

Code:
class FakeSectionHead(object):
def __init__(self, fd):
self.fd = fd

[Code]....

View 3 Replies View Related

Ubuntu :: Insert Written Comments Into Screen-casting

Aug 12, 2010

I went through recordMyDesktop and xvidcap and I didn't find any possibility how to insert written comments into recorded video.

View 2 Replies View Related

Software :: Excel Files Have Empty Comments In OO.o Calc

Jun 24, 2010

Imported an Excel file into OO.o Calc. EVerything is fine except the comments are all blank. It knows that comments should be there, but they're all empty. how to recover the contents?

View 2 Replies View Related

CentOS 5 Server :: When Taken The Comments Out And Edited For Anonymous - Proftpd Fails To Start

Dec 30, 2010

I've recently installed Proftpd to host for someone for a couple of hours.

With the default config it works however when taken the comments out and edited for anonymous, proftpd fails to start

This is the default config file which works if you have a user and password for my machine, but anonymous wont work (when the comments were removed).

View 1 Replies View Related

General :: Copy File Whose Source Path Is Mentioned In File To Specified Destination

Jun 3, 2010

I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..

View 1 Replies View Related

General :: Making .trb File From C Source File - Unknown MCU Atmega128

Jul 21, 2010

I am trying to compile C source file to generate .trb file (turbo file) which will then burn on trubo sim using TP2. When I comiple the code following error is occuring. before going through belwo error I was getting error 'Unknown MCU atmega128', known MCU are: (list appread), then I change the configuration and set the MCU to supported list then following error is occuring.

XXXXXXX@MYN8G5R52S /home/my-aip/my-aip
$ make
avr-ld -o my-aip.elf my-aip.o -L../../turbo-devel/lib -T turbo.lds -d -r --emit-
relocs -R ../../turbo-devel/lib/public_calls -lformlib -laes -lm -lc `avr-gcc -p

[code]....

Now strange thing is that whats so ever the value is of atmegs.. is I am facing same issue.

View 1 Replies View Related

General :: Decompress A Source File $$$.tar File?

May 23, 2011

I am about to decompress a source file $$$.tar file? In what place do you decompress a tarball? I do know that I will be entering ./configure, make.

View 3 Replies View Related

Security :: Comments Added To Website Have "http://Yourwebsite" - Is It Spam

Jul 26, 2010

On my website/blog I've gotten a couple of comments having what seems to be regular content (name, mail, message), but where the sender website field is set to "http://Yourwebsite". I find it strange that two comments from separate individuals fill the sender website field with this text. Is this possible to find out if these comments are spam or not? Based on the messages alone they don't seem to be, even though it is possible. From what I know the comments code don't enter this value by default.

View 2 Replies View Related

Server :: Error: Org.xml.sax.SAXParseException: The String "--" Is Not Permitted Within Comments

Dec 22, 2010

I'm having problems with Dogtag Certificate System, i have installed a CA Root on another machine and create a Security Domain, and now I'm installing this CA which is supposed to be subordinated to it. After creating the PKI i can access the configuration web page, but when i get to the Security Domain section, i choose "Join Security Domain", enter the url and get this error:

org.xml.sax.SAXParseException: The string "--" is not permitted within comments.

View 6 Replies View Related

General :: What Is The Source File For Sh

Mar 2, 2010

This machine has sh as the shell default. Where is the source file for this shell? I only have .bashrc under my directory. How do I have it sourced automatically at login in?

View 5 Replies View Related

Fedora :: F12 - Unable To Use The Source File

Dec 26, 2009

trying to use a source file, but it does not seem to be working. I tried this website [URL] after running rpm -ivh <rpm-name>.src.rpm nothing is in /usr/src/redhat/SPECS I have searched for .spec files , can not find any.

View 2 Replies View Related

General :: Not Able To Compile Source RPM File

Oct 15, 2010

I am trying to build a source rpm file through a source rpm package but while compiling I am getting the below errors as,

[root@nisserver tmp]# ls
gconfd-root mapping-root ssh-kvrIrp2633
keyring-fgwCIY nmap-5.21-1.src.rpm virtual-root.2hSYRa
keyring-vx1pvB orbit-root

[root@nisserver tmp]# rpmbuild --rebuild nmap-5.21-1.src.rpm
Installing nmap-5.21-1.src.rpm
warning: user fyodor does not exist - using root
warning: group fyodor does not exist - using root
warning: user fyodor does not exist - using root
warning: group fyodor does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.49535 .....

RPM build errors:
user fyodor does not exist - using root
group fyodor does not exist - using root
user fyodor does not exist - using root
group fyodor does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.73783 (%build)

What next step need to be taken to install the rpm file from the source file.

View 6 Replies View Related

CentOS 5 :: Php Source File Compilation?

May 25, 2011

Can anybody share a link or steps for Php 5.3.3 and Apache 2.2.19 source file compilation

View 3 Replies View Related

Debian :: Source Is Distributed In A GZipped File?

Apr 30, 2010

I'm trying to understand how deb packages work. Are there source debs?I assumed there were, but from[URL].. I see that source is distributed in a GZipped file.

View 3 Replies View Related

Ubuntu :: Correctly Install A Tar.bz2 Source File?

Apr 18, 2010

Since the time I have moved to Ubuntu..I am finding it difficult to do work on images.... since in Windows I was using Photoshop.. But I tried running photoshop using wine and stuff but either didn't work or caused a lot of problems. So I found a new solution GIMP that is very close to Photoshop but not exactly like that.Now I got another solution that is some modification to GIMP called GIMP shop.

I downloaded the Linux version and I got a file gimp-2.2.8.tar.bz2 I was always confused in how I can install these source... there is no help on their website. installing these source files.... since I need to do many images manipulation and editing for my work.

View 5 Replies View Related

Ubuntu :: Can't Download 10.04 For PS3 - Source File Could Not Be Read

Jul 13, 2010

I'm trying to download ubuntu 10.04 for PS3. when I download it, it gets to about 180 MB and then gives me an error saying the source file could not be read.

View 4 Replies View Related

Ubuntu :: Copy Or Move File From A .txt Source?

Apr 22, 2011

Im usign photorec to recover some files that i lost during a format to my hard drive.

The program works like a charm but put all the files on differents folders. i use the find command to put on a list the jpg files but how i use the cp or the mv command to move that files in the list to another folder?

View 4 Replies View Related

Security :: Fix A Source File That Had Definately Not Changed?

Jul 9, 2010

I am running a Fedora 10 Virtual Server and get have a feeling I have been hacked. I needed to fix a source file that I had definately not changed myself. It was a PHP file concerned with usernames and passwords so that made me even more suspicious. I have been investigating and found the following. If you need other information give me the command I should run and I will update, I am no expert in this area and use the server to host my website and SVN. I am the only person that has access to the server.

Code:
# lsof -u nobody
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

[code]....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved