Home > Web Front-end > JS Tutorial > Let the HTML files under GoogleCode's SVN display normally under FireFox._javascript skills

Let the HTML files under GoogleCode's SVN display normally under FireFox._javascript skills

WBOY
Release: 2016-05-16 18:52:37
Original
1549 people have browsed it

I tried it today and found that the HTML in SVN provided by GoogleCode is displayed as an HTML source file in Firefox
Googled it and found the answer:
If it is displayed normally, you need to set svn:mime-type when submitting the file to SVN. text/html.(http://blog.pluskid.org/?p=70)
SVN clients support automatic configuration. The specific configuration method is as follows (http://www.worldhello.net/wiki/SVN)
--------------------------------------
6.2 Add attribute settings for new files ?
Whodo SVN’s Hooks script will check the attributes of the newly added file. If the svn:mime-type and/or svn:eol-style attributes are not set, submission is prohibited.
But every time you add a file, you have to execute a command like "svn ps svn:eol-style...", which is really cumbersome! Fortunately, the SVN client (command line or TortoiseSVN) supports the automatic attribute function. Attributes will be automatically added to the newly added files.

6.2.1 config configuration file
Enabling and setting automatic properties is done in the config configuration file. The location of the config configuration file:
Unix platform
The global configuration file location is: /etc/subversion/config; Each user's home directory also has a configuration file that overrides the settings of the global configuration file: ~/.subversion/config ;
Windows platform
The registry may contain the corresponding settings: HKLMSoftwareTigris.orgSubversionConfig, and HKCUSoftwareTigris.orgSubversionConfig. However, files have higher priority. Global configuration file: %ALLUSERSPROFILE%Application DataSubversionconfig, user personal configuration file: %APPDATA%Subversionconfig
6.2.2 Enable auto-props
Modify the config configuration and enable auto-props:
[miscellany]global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store .cvsignore Thumbs.db CVSuse-commit-times = yesenable-auto-props = yes
6.2.3 Auto-props settings based on file name
Auto-props settings are matched based on the file name.修改 config 文件,增添新的配置,如下:
### 자동 속성 구성을 위한 섹션.[auto-props]### 항목 형식은 다음과 같습니다:### file-name-pattern = propname[= 값][;propname[=값]...]### 파일 이름 패턴에는 와일드카드(예: '*' 및### '?')가 포함될 수 있습니다. 일치하는 모든 항목이 파일에 적용됩니다.### 자동 속성 기능을 활성화해야 하며### 일반적으로 'enable-auto-props' 옵션을 설정하여 수행됩니다.####### ########################################## 바이너리 파일## ###########################################*. bmp    = svn:mime-type=image/bmp*.gif    = svn:mime-type=image/gif*.gz    = svn:mime-type=application/x-gzip*.ico    = svn:mime-type=image /x-icon*.jar    = svn:mime-type=application/zip*.jpg    = svn:mime-type=image/jpeg*.pdf    = svn:mime-type=application/pdf*.png    = svn:mime -type=image/png*.ps    = svn:mime-type=application/postscript*.tif    = svn:mime-type=image/tiff*.vsd    = svn:mime-type=application/octet-stream*.zip = svn:mime-type=application/zip##################################### ############# 텍스트 파일, OS에 따라 다름 eol-style########################### ###################*.dsp    = svn:eol-style=CRLF*.dsw    = svn:eol-style=CRLF*.mm    = svn:eol -style=LF;svn:mime-type=text/xml*.sh    = svn:eol-style=LF;svn:executableMakefile    = svn:eol-style=LF############# ##################################### 텍스트 파일, eol 스타일이 기본입니다## ###########################################*. c        = svn:eol-style=native;svn:mime-type=text/plain*.cpp    = svn:eol-style=native;svn:mime-type=text/plain*.css    = svn:eol-style= Native;svn:mime-type=text/css*.diff    = svn:eol-style=native;svn:mime-type=text/plain*.dsl    = svn:eol-style=native;svn:mime-type= text/sgml*.dtd    = svn:eol-style=native;svn:mime-type=text/plain*.ent    = svn:eol-style=native;svn:mime-type=text/plain*.gml    = svn :eol-style=native;svn:mime-type=text/sgml*.h        = svn:eol-style=native;svn:mime-type=text/plain*.htm    = svn:eol-style=native;svn :mime-type=text/html*.html    = svn:eol-style=native;svn:mime-type=text/html*.java    = svn:eol-style=native;svn:mime-type=text/plain *.js    = svn:eol-style=native;svn:mime-type=text/plain*.mod    = svn:eol-style=native;svn:mime-type=text/plain*.patch    = svn:eol- style=native;svn:mime-type=text/plain*.php    = svn:eol-style=native*.pl    = svn:eol-style=native*.py    = svn:eol-style=native*.sgm    = svn:eol-style=native;svn:mime-type=text/sgml*.sgml    = svn:eol-style=native;svn:mime-type=text/sgml*.svg    = svn:eol-style=native; svn:mime-type=text/xml*.txt    = svn:mime-type=text/plain*.xml    = svn:eol-style=native;svn:mime-type=text/xml*.xsl    = svn:eol -style=native;svn:mime-type=text/xml*.xslt    = svn:eol-style=native;svn:mime-type=text/xmlREADME    = svn:eol-style=native文件添加后, 提交之前,可以过如下命令查看新增文件的属性:
$ svn proplist -v *

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template